Fix login to GHCR when publishing Docker images. (#17127)
Austin S. Hemmelgarn committed
Mar 8, 2024 at 08:50 UTC
f829047cf7aa844858fec94005ca049b019b1c02
1 file changed
+4
-4
.github/workflows/docker.yml
+4
-4
@@ -560,7 +560,7 @@ jobs:
560
uses: docker/login-action@v3
561
with:
562
registry: ghcr.io
563
- username: ${{ github.username }}
563
+ username: ${{ github.repository_owner }}
564
password: ${{ secrets.GITHUB_TOKEN }}
565
- name: Build Image
566
id: build
@@ -639,9 +639,9 @@ jobs:
639
if: github.repository == 'netdata/netdata'
640
uses: docker/login-action@v3
641
with:
642
- registry: quay.io
643
- username: ${{ secrets.NETDATABOT_QUAY_USERNAME }}
644
- password: ${{ secrets.NETDATABOT_QUAY_TOKEN }}
642
+ registry: ghcr.io
643
+ username: ${{ github.repository_owner }}
644
+ password: ${{ secrets.GITHUB_TOKEN }}
645
- name: Create and Push Manifest
646
id: manifest
647
if: github.repository == 'netdata/netdata'