-if [ "${IMAGE_EXTRA}" != "" ]; then ${DOCKER_CMD} tag ${CI_REGISTRY_IMAGE}:${IMAGE_TAG} ${CI_REGISTRY_IMAGE}:${IMAGE_EXTRA}; ${DOCKER_CMD} push ${CI_REGISTRY_IMAGE}:${IMAGE_EXTRA}; fi
-${DOCKER_CMD} logout $CI_REGISTRY
dockerize amphibian:
...
...
@@ -117,7 +126,7 @@ deploy on staging server:
variables:
GIT_STRATEGY:none
script:
-echo Deploying ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG} to staging server
-echo Deploying ${CI_REGISTRY_IMAGE}:latest to staging server
# Address the swarm
-export DOCKER_HOST=swarm.genesys-pgr.org
# Configuration
...
...
@@ -129,7 +138,7 @@ deploy on staging server:
-export DOCKER_CERT_PATH=${TLS_PATH}
-DOCKER_CMD=docker
# Actions
-${DOCKER_CMD} service update --image ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG} amphibian_sandbox
-${DOCKER_CMD} service update --image ${CI_REGISTRY_IMAGE}:latest amphibian_sandbox