Skip to content
Snippets Groups Projects
Commit 540a9114 authored by jan.bednarik's avatar jan.bednarik
Browse files

CI: deploy stage

parent ce24f9d4
No related branches found
No related tags found
1 merge request!294CI: deploy stage
Pipeline #4053 passed
stages:
- build
- deploy
image: docker:19.03.1
variables:
......@@ -25,3 +29,15 @@ build_nginx:
- docker pull $CI_REGISTRY_IMAGE:test-nginx || true
- docker build --cache-from $CI_REGISTRY_IMAGE:test-nginx -t $IMAGE_TAG_NGINX . -f Dockerfile.nginx
- docker push $IMAGE_TAG_NGINX
deploy_app:
stage: deploy
when: manual
script:
- docker run -e SWARMPIT_API_URL=$SWARMPIT_API_URL -e SWARMPIT_TOKEN=$SWARMPIT_TOKEN $SWARMPIT_DEPLOY $IMAGE_TAG_APP
deploy_nginx:
stage: deploy
when: manual
script:
- docker run -e SWARMPIT_API_URL=$SWARMPIT_API_URL -e SWARMPIT_TOKEN=$SWARMPIT_TOKEN $SWARMPIT_DEPLOY $IMAGE_TAG_NGINX
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment