From 42a038d3d9045922f852971bf41836999d1b9ab7 Mon Sep 17 00:00:00 2001 From: arbulu89 Date: Thu, 8 Feb 2024 17:13:00 +0100 Subject: [PATCH] Change ci execution policy --- .github/workflows/main.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 478f526..533e76e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,14 @@ name: Build & push container image to GH packages -on: [push] +on: + push: + tags-ignore: + - "*" + branches: + - "main" + pull_request: + release: + types: [published] + workflow_dispatch: env: REGISTRY: ghcr.io @@ -8,6 +17,7 @@ env: jobs: build-and-push-image: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' || github.event_name == 'release' permissions: contents: read packages: write