Commit b6bf78c4 authored by Grant's avatar Grant
Browse files

[ci] reorder rules to check branch first

parent 38576521
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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