summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2024-03-08 08:50:27 -0500
committerGitHub <noreply@github.com>2024-03-08 15:50:27 +0200
commitf829047cf7aa844858fec94005ca049b019b1c02 (patch)
tree1ab20923984992f53a1496a6093cba4a578fc181
parent1c71da44145f799f5ffa6bdefc2b557deb1e5bdd (diff)
Fix login to GHCR when publishing Docker images. (#17127)
-rw-r--r--.github/workflows/docker.yml8
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'