From c4cc78c33e7712450cfb8013f4c0673e8280ca2a Mon Sep 17 00:00:00 2001 From: Saibotk Date: Sun, 26 Nov 2023 16:46:58 +0100 Subject: [PATCH] ci: Only run deploy on default branch --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d761488..17ba6b3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,6 +39,8 @@ package: stage: package interruptible: true image: quay.io/sheogorath/build-ah-engine:latest + rules: + - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" variables: LANG: C.UTF-8 tags: @@ -56,6 +58,8 @@ test: tags: - privileged-ram-4gb image: quay.io/sheogorath/build-ah-engine:latest + rules: + - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" variables: LANG: C.UTF-8 before_script: @@ -70,6 +74,8 @@ test: deploy: stage: deploy + rules: + - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" variables: PLAYBOOK: static_websites.yml trigger: