diff --git a/.github/workflows/gcr.io_mirror b/.github/workflows/gcr.io_mirror new file mode 100644 index 0000000..6b2150b --- /dev/null +++ b/.github/workflows/gcr.io_mirror @@ -0,0 +1,24 @@ +name: gcr.io_mirror +on: + issues: + types: [opened] + label: + types: [created] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + # Login against a Docker registry except on PR + # https://github.com/docker/login-action + - name: Log into registry ${{ env.REGISTRY }} + uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - uses: actions/checkout@v2 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)