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

add docker login

parent 566708b9
No related branches found
No related tags found
1 merge request!261updating ci/cd pipeline with stages and do it as user 'sdc' instead of 'vermaas'
Pipeline #37908 passed
stages: stages:
- build - build
- deploy
- deploy_to_test - deploy_to_test
- deploy_to_production - deploy_to_production
...@@ -17,7 +16,6 @@ docker-build: ...@@ -17,7 +16,6 @@ docker-build:
- docker push "$CI_REGISTRY_IMAGE" - docker push "$CI_REGISTRY_IMAGE"
# only: # only:
# - master # - master
# - release
# deploy master or branch to 'sdc-dev.astron.nl' # deploy master or branch to 'sdc-dev.astron.nl'
...@@ -33,6 +31,7 @@ docker-deploy-to-test: ...@@ -33,6 +31,7 @@ docker-deploy-to-test:
- ssh-keyscan dop814.astron.nl >> ~/.ssh/known_hosts - ssh-keyscan dop814.astron.nl >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
script: script:
- ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY"
- ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker pull "$CI_REGISTRY_IMAGE"" - ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker pull "$CI_REGISTRY_IMAGE""
- ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker-compose -p atdb -f /docker_compose/atdb-ldv/docker-compose-dev-cd.yml up -d" - ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker-compose -p atdb -f /docker_compose/atdb-ldv/docker-compose-dev-cd.yml up -d"
when: manual when: manual
......
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