Skip to content

Commit 072a7c3

Browse files
authored
ci: use docker login action
1 parent c472509 commit 072a7c3

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/docker-release.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@ jobs:
1818
- name: Setup faas-cli
1919
run: |
2020
curl -sSL https://cli.openfaas.com | sh
21-
# TODO: Check if this is doable with the docker login action
22-
- name: GHCR Login
23-
env:
24-
GHCR_AUTH_TOKEN: ${{ secrets.GHCR_AUTH_TOKEN }}
25-
run: |
26-
echo "$GHCR_AUTH_TOKEN" | docker login \
27-
ghcr.io \
28-
--username ${{ github.actor }} \
29-
--password-stdin
21+
- name: Log in to GitHub Container Registry
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.repository_owner }}
26+
password: ${{ secrets.GHCR_AUTH_TOKEN }}
3027
- name: Pull template
3128
run: |
3229
git clone https://github.com/tschaefer/openfaas-perl-mojo-template -b full-mojo _template

0 commit comments

Comments
 (0)