Skip to content

Commit

Permalink
ci: do not push containers on PRs (#36)
Browse files Browse the repository at this point in the history
Previously the containers were pushed regardless of whether
it is kicked by PRs or commits (push events).  This fixes that.

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
  • Loading branch information
mathetake authored Dec 6, 2024
1 parent f015e7a commit 1d805c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker_builds_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
# * Only use the tag if the event is a tag event, otherwise use "latest".
# * Build for both amd64 and arm64 platforms.
- name: Build and Push Image
if: github.event_name == 'push'
run: |
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
TAG="${GITHUB_REF#refs/tags/}"
Expand Down

0 comments on commit 1d805c6

Please sign in to comment.