Skip to content

Commit

Permalink
login to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Jul 5, 2024
1 parent 13bc021 commit 1fca462
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build image for tests
- name: Login to GitHub Container Registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v6
with:
file: Containerfile
Expand Down

0 comments on commit 1fca462

Please sign in to comment.