Skip to content

Commit

Permalink
Don't try to login and push to GHCR on forks (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-scheck committed May 3, 2024
1 parent 0a83c75 commit 2ec0ea3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
type=sha
- name: Login to GitHub Container Registry
if: github.repository_owner == 'bgp'
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -60,5 +61,5 @@ jobs:
file: .github/images/alpine:3.Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
push: ${{ github.repository_owner == 'bgp' }}
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 2ec0ea3

Please sign in to comment.