From 9680ed66d8d129f57acf8ac9d9d090440a155fac Mon Sep 17 00:00:00 2001 From: clux Date: Sat, 8 Feb 2025 08:43:20 +0000 Subject: [PATCH 1/2] only push on main AND TAGS ffs Signed-off-by: clux --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57f101b..efeb050 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,7 @@ jobs: context: . cache-from: type=gha,scope=base cache-to: type=gha,scope=base,mode=max - push: ${{ github.ref == 'refs/heads/main' }} + push: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: linux/amd64 @@ -139,7 +139,7 @@ jobs: context: . cache-from: type=gha,scope=otel cache-to: type=gha,scope=otel,mode=max - push: ${{ github.ref == 'refs/heads/main' }} + push: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: linux/amd64 From 8e22609a60ff65a677581dc9ad59687ab2613b6b Mon Sep 17 00:00:00 2001 From: clux Date: Sat, 8 Feb 2025 08:45:01 +0000 Subject: [PATCH 2/2] guess we need big brackets here Signed-off-by: clux --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efeb050..37c13d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,7 @@ jobs: context: . cache-from: type=gha,scope=base cache-to: type=gha,scope=base,mode=max - push: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') + push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: linux/amd64 @@ -139,7 +139,7 @@ jobs: context: . cache-from: type=gha,scope=otel cache-to: type=gha,scope=otel,mode=max - push: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') + push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: linux/amd64