Skip to content
Snippets Groups Projects
Commit c2d4eb61 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

trying 'staging' step instead of 'deploy to acceptance'

parent 890785ec
No related branches found
No related tags found
4 merge requests!39Dev nico,!23Master,!22Master,!19Dev nico
stages:
- build
- staging
- deploy
docker-build-master:
docker-build:
# Official docker image.
image: docker:latest
stage: build
......@@ -72,6 +73,25 @@ docker-deploy-acceptance:
only:
- acceptance
# deploy acceptance version on 'dop457.astron.nl'
docker-staging-acceptance:
image: docker:latest
stage: staging
before_script:
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan dop457.astron.nl >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- ssh -o StrictHostKeyChecking=no vermaas@dop457.astron.nl "docker pull "$CI_REGISTRY_IMAGE""
- ssh -o StrictHostKeyChecking=no vermaas@dop457.astron.nl "docker-compose -p atdb -f /data/docker_compose/docker-compose-atdb-ldv-acc-cd.yml up -d"
when: manual
only:
- release
# deploy release version on 'sdc.astron.nl'
docker-deploy-release:
image: docker:latest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment