From 9dcd0063bdbf2643c76bc926698fd56ced47c74a Mon Sep 17 00:00:00 2001 From: pierrebeauguitte Date: Mon, 15 Apr 2024 14:07:36 +0200 Subject: [PATCH] ci: deploy to stage from main only (#26) --- .github/workflows/pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 9e48b9f..74416ef 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -87,6 +87,7 @@ jobs: name: Deploy to kubernetes stage environment needs: build-and-publish runs-on: [self-hosted, Linux] + if: github.ref == 'refs/heads/main' environment: stage steps: - name: Checkout repository