Commit 8153f734 authored by Alessio Caiazza's avatar Alessio Caiazza

Avoid running autodevops sast job on GitLab CE

parent 627a9687
...@@ -89,7 +89,7 @@ sast: ...@@ -89,7 +89,7 @@ sast:
POSTGRES_DB: "false" POSTGRES_DB: "false"
allow_failure: true allow_failure: true
script: script:
- /app/bin/run . - sast .
artifacts: artifacts:
paths: [gl-sast-report.json] paths: [gl-sast-report.json]
...@@ -232,6 +232,17 @@ production: ...@@ -232,6 +232,17 @@ production:
docker run ${cc_opts} codeclimate/codeclimate:0.69.0 analyze -f json > codeclimate.json docker run ${cc_opts} codeclimate/codeclimate:0.69.0 analyze -f json > codeclimate.json
} }
function sast() {
case "$CI_SERVER_VERSION" in
*-ee)
/app/bin/run "$@"
;;
*)
echo "GitLab EE is required"
;;
esac
}
function deploy() { function deploy() {
track="${1-stable}" track="${1-stable}"
name="$CI_ENVIRONMENT_SLUG" name="$CI_ENVIRONMENT_SLUG"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment