Skip to content
Snippets Groups Projects
Commit e85342ae authored by Rémy Huet's avatar Rémy Huet :computer:
Browse files

Merge branch 'add-to-ci/pica-sympa' into 'master'

Add to ci/pica sympa

See merge request !41
parents fb57bca6 f1c932be
No related branches found
No related tags found
1 merge request!41Add to ci/pica sympa
......@@ -8,7 +8,7 @@ stages:
- static_tests
- dynamic_tests
- deployment
# build the container that further steps will run in in order to avoid duplicating instructions between steps
metabuild:
stage: metabuild
......@@ -26,10 +26,12 @@ metabuild:
- "pica-etherpad/*"
- "pica-tellform/*"
- "pica-wekan/*"
- "pica-sympa/*"
refs:
- master
- dev-ci
- tx-services-p19-test
- dev-sympa
# build the container that was modified
build:
......@@ -50,10 +52,12 @@ build:
- "pica-etherpad/*"
- "pica-tellform/*"
- "pica-wekan/*"
- "pica-sympa/*"
refs:
- master
- dev-ci
- tx-services-p19-test
- dev-sympa
# run CoreOS' Clair and make the CI failed if a critical vulnerability isn't in the whitelist
clair:
......@@ -83,10 +87,12 @@ clair:
- "pica-etherpad/*"
- "pica-tellform/*"
- "pica-wekan/*"
- "pica-sympa/*"
refs:
- master
- dev-ci
- tx-services-p19-test
- dev-sympa
# run docker-bench-security and upload the results
docker-bench-security:
......@@ -119,12 +125,14 @@ docker-bench-security:
changes:
- "pica-dokuwiki/*"
- "pica-etherpad/*"
- "pica-tellform/*"
- "pica-tellform/*"
- "pica-wekan/*"
- "pica-sympa/*"
refs:
- master
- dev-ci
- tx-services-p19-test
- dev-sympa
# automatically deploy the container on pica01-test
deployment-test:
......@@ -146,7 +154,7 @@ deployment-test:
- echo $REGISTRY_PASSWORD | docker login $REGISTRY -u $REGISTRY_USERNAME --password-stdin
- docker pull $REGISTRY/ci-builds/$CI_COMMIT_SHA:latest
- docker tag $REGISTRY/ci-builds/$CI_COMMIT_SHA:latest $MODIFIED_IMAGE_FULL
script:
script:
- cd $MODIFIED_IMAGE
- sed -i -e s/picasoft.net/test.picasoft.net/g docker-compose.yml
- for VOLUME in $(docker-compose config --volumes | sed 's/-volume//g'); do if [[ ! $(docker volume ls -q | grep "^$VOLUME\$") ]]; then docker volume create --name=$VOLUME; fi; done
......@@ -162,10 +170,12 @@ deployment-test:
- "pica-etherpad/*"
- "pica-tellform/*"
- "pica-wekan/*"
- "pica-sympa/*"
refs:
- master
- dev-ci
- tx-services-p19-test
- dev-sympa
# automatically deploy the container on the production host associated with the modified image
# this will only happen after manually triggering the deployment
......@@ -210,6 +220,4 @@ deployment-prod:
- "pica-wekan/*"
refs:
- master
- dev-ci
- tx-services-p19-test
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