Skip to content

Commit 8748388

Browse files
committed
[GHA] Use secrets for dockerhub registry login
1 parent ae1d85d commit 8748388

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/build.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ jobs:
1717
branch:
1818
- sid_amd64
1919
env:
20-
# These three values need to be updated for collectd/collectd-ci
21-
# SLUG: "collectd/ci:${{ matrix.branch }}"
22-
SLUG: "ghcr.io/${{ github.actor }}/collectd-ci:${{ matrix.branch }}"
20+
SLUG: "collectd/ci:${{ matrix.branch }}"
2321

2422
steps:
2523
- uses: actions/checkout@v2
@@ -33,7 +31,6 @@ jobs:
3331
- name: Log into the container registry
3432
uses: docker/login-action@v1
3533
with:
36-
registry: ghcr.io
37-
username: ${{ github.actor }}
38-
password: ${{ secrets.GITHUB_TOKEN }}
34+
username: ${{ secrets.DOCKER_USERNAME }}
35+
password: ${{ secrets.DOCKER_PASSWORD }}
3936
- run: docker push "${SLUG}"

0 commit comments

Comments
 (0)