Skip to content

Commit 30fe52b

Browse files
committed
ci: Use docker/login-action@v2 and secrets.GITHUB_TOKEN
to login to ghcr.io, taking advantage of Github Automatic token authentication.
1 parent b7312bc commit 30fe52b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/production.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323

24-
- name: GHCR login
25-
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login ghcr.io --username automation@linkorb.com --password-stdin
24+
- name: Login to Container Registry ghcr.io
25+
uses: docker/login-action@v2
26+
with:
27+
registry: ghcr.io
28+
username: ${{ github.actor }}
29+
password: ${{ secrets.GITHUB_TOKEN }}
2630

2731
#php7
2832
#tag with temp tag to make sure trivy scans the new version

0 commit comments

Comments
 (0)