Skip to content
Snippets Groups Projects
Commit 0830161e authored by Igor Witz's avatar Igor Witz
Browse files

Update .gitlab-ci.yml

parent ca284d54
No related branches found
No related tags found
1 merge request!35Gestion des secrets
Pipeline #39670 failed
......@@ -88,11 +88,11 @@ docker-bench-security:
- sed -i -e "s/$MODIFIED_IMAGE_FULL/$REGISTRY\/ci-builds\/$CI_COMMIT_SHA:latest/g" $MODIFIED_IMAGE/docker-compose.yml
# remove links to external networks to be able to start the container locally
- sed -i -e '/networks/,+3d' $MODIFIED_IMAGE/docker-compose.yml
script:
# if secrets.example files exist, remove the .example extension to be able to start the container
- if [[ -d $MODIFIED_IMAGE/secrets ]]; then for i in $MODIFIED_IMAGE/secrets/* ; do cp $i $(echo $i| cut -d '.' -f1,2); done; fi;
- cd $MODIFIED_IMAGE
- docker volume create $CONTAINER_NAME
script:
- cd $MODIFIED_IMAGE
- docker-compose up -d
- git clone https://github.com/docker/docker-bench-security.git
- cd docker-bench-security
......@@ -114,6 +114,8 @@ docker-bench-security:
deployment-test:
stage: deployment
image: $REGISTRY/pica-ci:latest
variables:
- PICA_ENVIRONMENT: "TEST"
before_script:
- source /etc/profile.d/ci-variables
- export DOCKER_HOST=tcp://pica01-test.picasoft.net:2376
......@@ -147,6 +149,8 @@ deployment-test:
deployment-prod:
stage: deployment
image: $REGISTRY/pica-ci:latest
variables:
- PICA_ENVIRONMENT: "PRODUCTION"
before_script:
- source /etc/profile.d/ci-variables
- TMP_DOCKER_CA_CERT="${HOST}_DOCKER_CA_CERT" && eval DOCKER_CA_CERT_VARIABLE=\$$TMP_DOCKER_CA_CERT
......
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