Skip to content

Commit 5d87e37

Browse files
push and build only in main and tags (#508)
this commit changes the CI behavior to only build and push when something is committed to main or is a new tag.
1 parent 3e08c6b commit 5d87e37

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build-and-push.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Build and Push
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
49

510
env:
611
registry: ghcr.io

0 commit comments

Comments
 (0)