Commit b7c13ece authored by Andres Anaya Amariels's avatar Andres Anaya Amariels 🚀
Browse files

rules

parent 2784eb5c
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -51,6 +51,11 @@ dev_secrets_in_repo:
#  needs:
#    - dev_cancel_previous_action
  stage: dev_secrets_in_repo
  rules:
    - if: '$CI_COMMIT_REF_NAME == "staging"'
      when: never
    - if: '$CI_COMMIT_REF_NAME == "main"'
      when: never
  script:
    - |
      pip install trufflehog
@@ -62,6 +67,11 @@ dev_secrets_in_repo:
# define the process to do linting code: Sonarque, ruff?
dev_linting_code:
  stage: dev_linting
  rules:
    - if: '$CI_COMMIT_REF_NAME == "staging"'
      when: never
    - if: '$CI_COMMIT_REF_NAME == "main"'
      when: never
  script:
    - |
      echo "###ruff checks###"
@@ -72,6 +82,11 @@ dev_linting_code:

dev_linting_docker:
  stage: dev_linting
  rules:
    - if: '$CI_COMMIT_REF_NAME == "staging"'
      when: never
    - if: '$CI_COMMIT_REF_NAME == "main"'
      when: never
  script:
   - |
    # Download hadolint binary
@@ -112,6 +127,11 @@ dev_linting_docker:
  <<: *dev_common

dev_build_and_push:
  rules:
    - if: '$CI_COMMIT_REF_NAME == "staging"'
      when: never
    - if: '$CI_COMMIT_REF_NAME == "main"'
      when: never
  needs:
    - dev_linting_code
    - dev_linting_docker
+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@ prod_build_and_push:
  stage: prod_build_and_push
  rules:
    - if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+-release$/'
      when: always
    - when: never
  tags:
    - shell
  script: