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.
This commit is contained in:
Sebastian Webber
2023-07-14 14:30:49 -03:00
committed by GitHub
parent 3e08c6bd8d
commit 5d87e3781e

View File

@@ -1,6 +1,11 @@
name: Build and Push
on: push
on:
push:
branches:
- main
tags:
- v*
env:
registry: ghcr.io