Skip to content

Commit

Permalink
docker: Don't push to the registry for Pull Requests
Browse files Browse the repository at this point in the history
This requires more thought on how to handle secrets, and whether to just
omit it permanently.
  • Loading branch information
timschumi committed Jan 5, 2025
1 parent d547116 commit 02ce8fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7,windows/amd64
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow }}
- name: Generate build provenance attestation
if: ${{ github.event_name != 'pull_request' }}
uses: actions/attest-build-provenance@v2
with:
subject-name: ghcr.io/${{ github.repository }}
Expand Down

0 comments on commit 02ce8fd

Please sign in to comment.