From 0149029a0db1a8cd0be772c62b735c75509713c5 Mon Sep 17 00:00:00 2001 From: Brett Logan Date: Thu, 25 Mar 2021 10:12:18 -0400 Subject: [PATCH] Update Docker Publishing (#206) * Actions no longer supports short sha GitHub Actions no longer supports a short SHA as the version of an Action. The Action in question has published a tag now so that can be used directly. Signed-off-by: Brett Logan * Switch to the GITHUB_TOKEN for GHCR auth The GitHub Container Registry now supports the use of the GITHUB_TOKEN for pushing to a container registry on push events, switch to using this token as oppossed to the custome PAT_TOKEN. Signed-off-by: Brett Logan --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1775038c..c50f79c2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -156,13 +156,13 @@ jobs: uses: docker/login-action@v1 with: registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GHCR_PAT }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Gather Docker Labels if: steps.semantic.outputs.new_release_published == 'true' id: docker_meta - uses: crazy-max/ghaction-docker-meta@55d3462 #v1.9.1 + uses: crazy-max/ghaction-docker-meta@v1.12.0 with: images: ghcr.io/${{ github.repository }}