Skip to content

Commit 8b56cb0

Browse files
authored
only push on main AND TAGS (#137)
* only push on main AND TAGS ffs Signed-off-by: clux <[email protected]> * guess we need big brackets here Signed-off-by: clux <[email protected]> --------- Signed-off-by: clux <[email protected]>
1 parent a74d0da commit 8b56cb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
context: .
6767
cache-from: type=gha,scope=base
6868
cache-to: type=gha,scope=base,mode=max
69-
push: ${{ github.ref == 'refs/heads/main' }}
69+
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }}
7070
tags: ${{ steps.meta.outputs.tags }}
7171
labels: ${{ steps.meta.outputs.labels }}
7272
platforms: linux/amd64
@@ -139,7 +139,7 @@ jobs:
139139
context: .
140140
cache-from: type=gha,scope=otel
141141
cache-to: type=gha,scope=otel,mode=max
142-
push: ${{ github.ref == 'refs/heads/main' }}
142+
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }}
143143
tags: ${{ steps.meta.outputs.tags }}
144144
labels: ${{ steps.meta.outputs.labels }}
145145
platforms: linux/amd64

0 commit comments

Comments
 (0)