Skip to content
Snippets Groups Projects
Unverified Commit a1e3cb3f authored by Torma Kristóf's avatar Torma Kristóf :alien:
Browse files

rules and only cannot be used together

parent 44145f58
No related branches found
Tags 1.4.11
No related merge requests found
Pipeline #43321 failed
......@@ -22,25 +22,27 @@ stages:
container_scanning:
stage: Scan Container
tags: [kszk]
only:
- tags
rules:
- if: '$CI_COMMIT_TAG'
variables:
CS_DEFAULT_BRANCH_IMAGE: $CONTAINER_IMAGE
sast:
tags: [kszk]
rules:
- if: '$CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_TAG || $CI_COMMIT_REF_NAME == "dev"'
stage: Test and Flake8
secret_detection:
tags: [kszk]
rules:
- if: '$CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_TAG || $CI_COMMIT_REF_NAME == "dev"'
stage: Test and Flake8
Flake8:
stage: Test and Flake8
only:
- dev
- master
- tags
rules:
- if: '$CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_TAG || $CI_COMMIT_REF_NAME == "dev"'
tags: [kszk]
script:
- python -V
......@@ -71,8 +73,8 @@ Flake8:
Docker build to KSZK registry:
stage: Docker Build
tags: [kszk]
only:
- tags
rules:
- if: '$CI_COMMIT_TAG'
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: ['']
......@@ -97,8 +99,8 @@ Deploy to Kubernetes:
- cd k8s
- sed -i "s|##IMAGETAG##|${CI_COMMIT_REF_NAME}|" deployment.yml
- kubectl apply -f deployment.yml
only:
- tags
rules:
- if: '$CI_COMMIT_TAG'
include:
- template: Security/SAST.gitlab-ci.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment