Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit f538642

Browse files
committed
Update gha
1 parent 07998f1 commit f538642

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/cicd.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
uses: "actions/checkout@v3"
2626
- name: "Build the image"
2727
run: "make tag=${{ github.ref_name }} build"
28-
- name: "Authenticate to ghcr.io"
29-
run: "echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin"
28+
- name: "Login to ghcr.io"
29+
uses: "docker/login-action@v1"
30+
with:
31+
registry: "ghcr.io"
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
3034
- name: "Push the image to the repository"
3135
run: "make tag=${{ github.ref_name }} push"
3236
test:

0 commit comments

Comments
 (0)