From b6bf78c483476dfd3966dad1d914a5227ca60c40 Mon Sep 17 00:00:00 2001 From: Grant Date: Sun, 29 Dec 2024 22:58:51 -0700 Subject: [PATCH] [ci] reorder rules to check branch first --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1944b22..2c78835 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,10 +11,10 @@ publish: tags: - red rules: + - if: $CI_COMMIT_BRANCH == "main" - changes: - "**/*.md" when: manual - - if: $CI_COMMIT_BRANCH == "main" interruptible: true before_script: - echo $PAT | docker login $REGISTRY -u $GITLAB_USER_LOGIN --password-stdin @@ -27,10 +27,10 @@ deploy: tags: - red rules: + - if: $CI_COMMIT_BRANCH == "main" - changes: - "**/*.md" when: manual - - if: $CI_COMMIT_BRANCH == "main" interruptible: true script: - cd $WORK_DIR -- GitLab