diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2024-03-08 08:50:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 15:50:27 +0200 |
commit | f829047cf7aa844858fec94005ca049b019b1c02 (patch) | |
tree | 1ab20923984992f53a1496a6093cba4a578fc181 | |
parent | 1c71da44145f799f5ffa6bdefc2b557deb1e5bdd (diff) |
Fix login to GHCR when publishing Docker images. (#17127)
-rw-r--r-- | .github/workflows/docker.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b5e51acd19..d7d63514c4 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -560,7 +560,7 @@ jobs: uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.username }} + username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build Image id: build @@ -639,9 +639,9 @@ jobs: if: github.repository == 'netdata/netdata' uses: docker/login-action@v3 with: - registry: quay.io - username: ${{ secrets.NETDATABOT_QUAY_USERNAME }} - password: ${{ secrets.NETDATABOT_QUAY_TOKEN }} + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Create and Push Manifest id: manifest if: github.repository == 'netdata/netdata' |