From f949bed7f88c7b429d1bd51e48f7310ae2089d70 Mon Sep 17 00:00:00 2001 From: Bastian Krol Date: Wed, 30 Oct 2024 22:14:46 +0100 Subject: [PATCH] Revert "ci: temporarily push images from branches" This reverts commit 8bda3fafc76bc9e4195b395c5b67460829dc8771. --- .github/actions/build-image/action.yaml | 5 ++--- .github/workflows/ci.yaml | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/actions/build-image/action.yaml b/.github/actions/build-image/action.yaml index 55d008c1..99bbd037 100644 --- a/.github/actions/build-image/action.yaml +++ b/.github/actions/build-image/action.yaml @@ -49,8 +49,7 @@ runs: type=semver,pattern={{major}}.{{minor}}.{{patch}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} - type=ref,suffix=-dev,event=branch - type=ref,suffix=-pr,event=pr + type=ref,enable={{is_default_branch}},suffix=-dev,event=branch type=ref,event=tag type=sha labels: | @@ -75,4 +74,4 @@ runs: cache-from: type=gha,scope=${{ inputs.imageName }} cache-to: type=gha,mode=max,scope=${{ inputs.imageName }} # Maintenance note: keep the expression for push in sync with the expression used in "platforms". - push: true + push: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/') }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index baa56b7c..d2105023 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -191,6 +191,9 @@ jobs: build-and-push-images: name: Build Images runs-on: ubuntu-latest + needs: + - verify + - injector_binary_and_instrumentation_image_tests timeout-minutes: 60 steps: