From 1d805c6b718864cfeb7499ad696a1837bb4746a7 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Fri, 6 Dec 2024 12:59:29 -0800 Subject: [PATCH] ci: do not push containers on PRs (#36) 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 --- .github/workflows/docker_builds_template.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docker_builds_template.yaml b/.github/workflows/docker_builds_template.yaml index d2b83c165..d174bbc8b 100644 --- a/.github/workflows/docker_builds_template.yaml +++ b/.github/workflows/docker_builds_template.yaml @@ -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/}"