summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-08-04 15:29:58 +0200
committerlouiz’ <louiz@louiz.org>2017-08-04 15:29:58 +0200
commit5b0b41f40a3ef41657971e1538dfb508fd7e6be8 (patch)
treecaafd2353d2fcb1020c04f6dd67e4a013d1d6541
parent97b52526c5a661ea9fc5c5e1ae5ea300c54e19d2 (diff)
downloadbiboumi-5b0b41f40a3ef41657971e1538dfb508fd7e6be8.tar.gz
biboumi-5b0b41f40a3ef41657971e1538dfb508fd7e6be8.tar.bz2
biboumi-5b0b41f40a3ef41657971e1538dfb508fd7e6be8.tar.xz
biboumi-5b0b41f40a3ef41657971e1538dfb508fd7e6be8.zip
Build the docker image with --no-cache, --pull
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eeb4375..9b70297 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -344,7 +344,7 @@ deploy:docker:
- echo "$TLSKEY" > ~/.docker/key.pem
- docker version
- 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 build --pull --no-cache -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-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