Skip to content
Snippets Groups Projects
Commit 4e256de0 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Update .gitlab-ci.yml

parent c4f15f74
Branches master
No related tags found
No related merge requests found
Pipeline #1861 passed
......@@ -6,3 +6,15 @@ dockerize:
- docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
- docker build -t "${CI_REGISTRY_IMAGE}" --no-cache .
- docker push "${CI_REGISTRY_IMAGE}"
deploy_staging:
stage: deploy
tags:
- shell-staging
when: manual
script:
- docker stop coords-service || true
- docker rm coords-service || true
- docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
- docker pull git.ia2.inaf.it:5050/ci-intro/coords-service
- docker run -d -p 9999:8000 --name coords-service git.ia2.inaf.it:5050/ci-intro/coords-service 8000 $location_id
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