mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2024-11-07 08:04:06 +01:00
add rules for when to scan
This commit is contained in:
parent
c7847a59c1
commit
37c8fb5f40
@ -10,7 +10,6 @@ stages:
|
||||
variables:
|
||||
KASM_RELEASE: "1.14.0"
|
||||
TEST_INSTALLER: "https://kasm-static-content.s3.amazonaws.com/kasm_release_1.14.0.7f3582.tar.gz"
|
||||
RUN_VULNERABILITY_SCANS: "false"
|
||||
before_script:
|
||||
- export SANITIZED_BRANCH="$(echo $CI_COMMIT_REF_NAME | sed -r 's#^release/##' | sed 's/\//_/g')"
|
||||
|
||||
|
@ -144,17 +144,19 @@ scan_{{ IMAGE.name1 }}_{{ IMAGE.name2 }}:
|
||||
{% for FILE in files %}- {{ FILE }}
|
||||
{% endfor %}{% for FILE in IMAGE.changeFiles %}- {{ FILE }}
|
||||
{% endfor %}{% endif %}
|
||||
except:
|
||||
variables:
|
||||
- $README_USERNAME
|
||||
- $README_PASSWORD
|
||||
- $DOCKERHUB_REVERT
|
||||
- $REVERT_IS_ROLLING
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH =~ /^release\/.*$/
|
||||
when: always
|
||||
- if: $CI_COMMIT_BRANCH == "develop"
|
||||
when: always
|
||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||
when: always
|
||||
- when: manual
|
||||
needs:
|
||||
- build_{{ IMAGE.name1 }}_{{ IMAGE.name2 }}
|
||||
when: on_success
|
||||
rules:
|
||||
- if: ($RUN_VULNERABILITY_SCANS == "true" || $CI_COMMIT_BRANCH == "develop")
|
||||
tags:
|
||||
- oci-fixed-amd
|
||||
retry: 1
|
||||
@ -180,12 +182,16 @@ scan_{{ IMAGE.name1 }}_{{ IMAGE.name2 }}:
|
||||
{% for FILE in files %}- {{ FILE }}
|
||||
{% endfor %}{% for FILE in IMAGE.changeFiles %}- {{ FILE }}
|
||||
{% endfor %}{% endif %}
|
||||
except:
|
||||
variables:
|
||||
- $README_USERNAME
|
||||
- $README_PASSWORD
|
||||
- $DOCKERHUB_REVERT
|
||||
- $REVERT_IS_ROLLING
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH =~ /^release\/.*$/
|
||||
when: always
|
||||
- if: $CI_COMMIT_BRANCH == "develop"
|
||||
when: always
|
||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||
when: always
|
||||
- when: manual
|
||||
needs:
|
||||
- build_{{ IMAGE.name1 }}_{{ IMAGE.name2 }}
|
||||
rules:
|
||||
|
Loading…
Reference in New Issue
Block a user