diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index dd2a31b19c..00f136f071 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -23,15 +23,15 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Build image - #run: docker build . --file Dockerfile --tag $IMAGE_NAME - run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" - - name: Log into GitHub Container Registry # NB: We no longer use PATs for auth as they grant broad access. #run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + - name: Build image + #run: docker build . --file Dockerfile --tag $IMAGE_NAME + run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" + - name: Push image to GitHub Container Registry run: | IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME