Update CI configuration to deploy on swarm cluster

parent 7a084cd3
Pipeline #64 passed with stages
in 1 minute and 6 seconds
image: docker:dind
before_script:
- docker login -u ${CI_DOCKER_REGISTRY_USER} -p ${CI_DOCKER_REGISTRY_PASS} ${CI_DOCKER_REGISTRY_HOST}
stages:
- build
- release
......@@ -21,6 +18,7 @@ build:docker:
release-image:latest:
stage: release
script:
- docker login -u ${CI_DOCKER_REGISTRY_USER} -p ${CI_DOCKER_REGISTRY_PASS} ${CI_DOCKER_REGISTRY_HOST}
- docker tag $CONTAINER_BUILD_IMAGE $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE
only:
......@@ -29,6 +27,7 @@ release-image:latest:
release-image:tags:
stage: release
script:
- docker login -u ${CI_DOCKER_REGISTRY_USER} -p ${CI_DOCKER_REGISTRY_PASS} ${CI_DOCKER_REGISTRY_HOST}
- docker tag $CONTAINER_BUILD_IMAGE $CONTAINER_RELEASE_IMAGE_TAG
- docker push $CONTAINER_RELEASE_IMAGE_TAG
only:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment