diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ccb723ed31b3b38ace1a3fea2b6f12ed90053258..55d987ba2e107cca42981b907da719739f278f61 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,8 @@ stages: - build - - staging - deploy -docker-build: +docker-build-master: # Official docker image. image: docker:latest stage: build @@ -73,25 +72,6 @@ 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