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

[CI] Fix docker-bench-security not allowed to pull from production registry

parent eab398a3
No related branches found
No related tags found
No related merge requests found
......@@ -144,12 +144,15 @@ docker-bench-security:
- "sed -i -e 's/external: true/external: false/g' $MODIFIED_IMAGE/docker-compose.yml"
- cat $MODIFIED_IMAGE/docker-compose.yml
- cd $MODIFIED_IMAGE
# Login on the production registry, in case there is another image in Docker Compose stored on the production registry
- docker logout $REGISTRY
- echo $REGISTRY_PROD_PASSWORD | docker login $REGISTRY_PROD -u $REGISTRY_PROD_USERNAME --password-stdin
- docker-compose up -d
- git clone https://github.com/docker/docker-bench-security.git
- cd docker-bench-security
- sh docker-bench-security.sh -c container_images,container_runtime,docker_security_operations,community_checks -l ../../report.txt
after_script:
- docker logout $REGISTRY
- docker logout $REGISTRY_PROD
artifacts:
paths:
- report.txt
......
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