1 parent 1e6a785 commit e2a13fdCopy full SHA for e2a13fd
1 file changed
.github/workflows/test-build-push.yml
@@ -1,6 +1,7 @@
1
name: Test, Build and Push Images
2
3
-# Runs tests and builds images on every branch. Only pushes to the registry on main.
+# Runs tests and builds images on every branch.
4
+# Pushes to the registry only on main, or on a manual workflow_dispatch run.
5
on:
6
push:
7
branches:
@@ -93,7 +94,7 @@ jobs:
93
94
with:
95
context: ${{ matrix.context }}
96
file: ${{ matrix.context }}/Dockerfile
- push: ${{ github.ref == 'refs/heads/main' }}
97
+ push: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}
98
tags: ${{ steps.meta.outputs.tags }}
99
labels: ${{ steps.meta.outputs.labels }}
100
cache-from: type=gha
0 commit comments