Skip to content
Snippets Groups Projects
Verified Commit 3fdf34da authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[CI] Allow to build and test everywhere. Push to prod only on master

parent fc27fb29
No related branches found
No related tags found
No related merge requests found
Pipeline #54478 failed
......@@ -64,10 +64,6 @@ set-variables:
- "**/docker-compose.yml"
when: always
- when: manual
only:
refs:
- master
- dev-ci
# Build the image that was modified
build:
......@@ -89,10 +85,6 @@ build:
- "**/Dockerfile"
when: always
- when: manual
only:
refs:
- master
- dev-ci
# Run CoreOS' Clair and make the CI failed if a critical vulnerability isn't in the whitelist
clair:
......@@ -117,10 +109,6 @@ clair:
- "**/clair-whitelist.yml"
when: always
- when: manual
only:
refs:
- master
- dev-ci
# Run docker-bench-security and upload the results
docker-bench-security:
......@@ -146,15 +134,11 @@ docker-bench-security:
after_script:
- docker logout $REGISTRY
rules:
- changes:
changes:
- "**/Dockerfile"
- "**/docker-compose.yml"
when: always
- when: manual
only:
refs:
- master
- dev-ci
# Push the generated image on the production registry,
# once it passed all security tests and has been successfully built
......@@ -172,5 +156,4 @@ push-prod:
only:
refs:
- master
- dev-ci
when: manual
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