From 5d87e3781e6c7e8cdfb32a66238a0540d79402f5 Mon Sep 17 00:00:00 2001 From: Sebastian Webber Date: Fri, 14 Jul 2023 14:30:49 -0300 Subject: [PATCH] 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. --- .github/workflows/build-and-push.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index 1baa93b..953bee9 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -1,6 +1,11 @@ name: Build and Push -on: push +on: + push: + branches: + - main + tags: + - v* env: registry: ghcr.io