Skip to content

Commit ebc4f03

Browse files
committed
chore: update release workflow to trigger on pull requests and conditionally push Docker images
1 parent 1aa45da commit ebc4f03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Release
22

33
on:
4+
pull_request:
5+
branches:
6+
- main
47
release:
58
types:
69
- created
@@ -52,7 +55,7 @@ jobs:
5255
with:
5356
context: .
5457
platforms: linux/amd64
55-
push: true
58+
push: ${{ github.event_name == 'release' }}
5659
tags: ${{ steps.meta.outputs.tags }}
5760
labels: ${{ steps.meta.outputs.labels }}
5861
build-args: |
@@ -66,6 +69,7 @@ jobs:
6669
name: Deploy to Kubernetes
6770
needs: docker-release
6871
runs-on: ubuntu-latest
72+
if: github.event_name == 'release'
6973
permissions:
7074
contents: read
7175
steps:

0 commit comments

Comments
 (0)