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