Skip to content

Commit

Permalink
Docker login to ghcr.io before pushing image (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab authored Mar 11, 2024
1 parent 918978a commit 30eccb4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ jobs:
- name: Build container image
run: docker build . --platform linux/amd64 --target doj-demo --tag ${TAG_NAME}

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to container registry
run: docker push ${TAG_NAME}

Expand Down

0 comments on commit 30eccb4

Please sign in to comment.