Skip to content

Commit

Permalink
ci: log into ghcr prior to pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiamoe committed Nov 20, 2024
1 parent bd56484 commit 2b5ff25
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/push-pr-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:

jobs:
build-contianer:
permissions:
contents: read
packages: write
name: Build container
runs-on: ubuntu-latest
steps:
Expand All @@ -25,6 +28,13 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into ghcr.io
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
Expand Down

0 comments on commit 2b5ff25

Please sign in to comment.