Loading capif/templates/ci_dev.gitlab-ci.yml +20 −0 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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###" Loading @@ -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 Loading Loading @@ -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 Loading capif/templates/cicd-deploy-release.gitlab-ci.yml +2 −0 Original line number Diff line number Diff line Loading @@ -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: Loading Loading
capif/templates/ci_dev.gitlab-ci.yml +20 −0 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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###" Loading @@ -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 Loading Loading @@ -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 Loading
capif/templates/cicd-deploy-release.gitlab-ci.yml +2 −0 Original line number Diff line number Diff line Loading @@ -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: Loading