From 51ce56407a84a5e626a8dbf1f2d244306a1738b3 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Fri, 3 Sep 2021 16:45:27 +0200 Subject: [PATCH] use GITHUB_TOKEN instead of PAT for ghcr.io publishing --- .github/workflows/master-latest.yaml | 4 ++-- .github/workflows/tags.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/master-latest.yaml b/.github/workflows/master-latest.yaml index 6784b45..5fa1220 100644 --- a/.github/workflows/master-latest.yaml +++ b/.github/workflows/master-latest.yaml @@ -36,8 +36,8 @@ jobs: uses: docker/login-action@v1 with: registry: ghcr.io - username: ${{ secrets.DOCKER_GITHUB_USERNAME }} - password: ${{ secrets.DOCKER_GITHUB_PAT }} + username: ${{ github.repository_owner }} # github username or org + password: ${{ secrets.GITHUB_TOKEN }} # github actions builtin token. repo has to have pkg access. # the arm64 is of course much slower due to qemu, so build and push amd64 **first** # due to the way manifests work, the gap between this and the complete push below diff --git a/.github/workflows/tags.yaml b/.github/workflows/tags.yaml index 7976c31..c4ba67d 100644 --- a/.github/workflows/tags.yaml +++ b/.github/workflows/tags.yaml @@ -49,8 +49,8 @@ jobs: uses: docker/login-action@v1 with: registry: ghcr.io - username: ${{ secrets.DOCKER_GITHUB_USERNAME }} - password: ${{ secrets.DOCKER_GITHUB_PAT }} + username: ${{ github.repository_owner }} # github username or org + password: ${{ secrets.GITHUB_TOKEN }} # github actions builtin token. repo has to have pkg access. # the arm64 is of course much slower due to qemu, so build and push amd64 **first** # due to the way manifests work, the gap between this and the complete push below