diff options
author | louiz’ <louiz@louiz.org> | 2017-08-02 13:05:21 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-08-02 13:05:21 +0200 |
commit | 933eb65e7b2da07d91da767b4e715068360314a9 (patch) | |
tree | e02d668b1dab44d14ffa5b2be2e183dd88c9c366 | |
parent | dc8f07a566a0bef9af00d16f881a0f91949a9688 (diff) | |
download | biboumi-933eb65e7b2da07d91da767b4e715068360314a9.tar.gz biboumi-933eb65e7b2da07d91da767b4e715068360314a9.tar.bz2 biboumi-933eb65e7b2da07d91da767b4e715068360314a9.tar.xz biboumi-933eb65e7b2da07d91da767b4e715068360314a9.zip |
Start 3 biboumi services in docker deploy job
-rw-r--r-- | .gitlab-ci.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fa76c00..02f34e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -333,7 +333,6 @@ deploy:docker: DOCKER_HOST: tcp://docker.louiz.org:2376 DOCKER_TLS_VERIFY: 1 SERVICE_NAME: biboumi - BIBOUMI_HOSTNAME: test.biboumi.louiz.org script: - mkdir -p ~/.docker - echo "$TLSCACERT" > ~/.docker/ca.pem @@ -343,7 +342,9 @@ deploy:docker: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN docker.louiz.org - docker build -t docker.louiz.org/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME docker/biboumi/alpine - docker push docker.louiz.org/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME - - docker service create --with-registry-auth --detach=false --name $CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME -e BIBOUMI_PASSWORD=password -e BIBOUMI_XMPP_SERVER_IP=prosody -e BIBOUMI_HOSTNAME=$BIBOUMI_HOSTNAME --network xmpp docker.louiz.org/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME || docker service update $CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME + - docker service create --with-registry-auth --detach=false --name $CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME-1 -e BIBOUMI_PASSWORD=password -e BIBOUMI_XMPP_SERVER_IP=prosody -e BIBOUMI_HOSTNAME=test.biboumi.louiz.org --network xmpp docker.louiz.org/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME || docker service update $CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME-1 + - docker service create --with-registry-auth --detach=false --name $CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME-2 -e BIBOUMI_PASSWORD=password -e BIBOUMI_XMPP_SERVER_IP=prosody -e BIBOUMI_HOSTNAME=test2.biboumi.louiz.org --network xmpp docker.louiz.org/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME || docker service update $CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME-2 + - docker service create --with-registry-auth --detach=false --name $CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME-3 -e BIBOUMI_PASSWORD=password -e BIBOUMI_XMPP_SERVER_IP=prosody -e BIBOUMI_HOSTNAME=test2.biboumi.louiz.org --network xmpp docker.louiz.org/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME || docker service update $CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME-3 environment: name: master url: https://biboumi.louiz.org |