Skip to content

Commit

Permalink
ci: push images from local PRs only (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
npazosmendez authored Jan 3, 2025
1 parent a62d3c1 commit 19ccf02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
- name: Build And Push
uses: grafana/shared-workflows/actions/push-to-gar-docker@main
with:
push: true
# Don't push from forks
push: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
# If we are building main, push to prod and add the 'latest' tag.
tags: |-
${{ env.DOCKER_TAG }}
Expand Down

0 comments on commit 19ccf02

Please sign in to comment.