Commit 88e94c10 authored by Dennis Willers's avatar Dennis Willers 🏀

Update gitlab-ci.yml

parent 2b71ac50
Pipeline #268 passed with stages
in 5 minutes and 29 seconds
......@@ -10,8 +10,8 @@ docker-build:
stage: package
script:
- docker login hub.willers.digital -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- docker build -t hub.willers.digital/dennis.willers/Tabu-Middleware .
- docker push hub.willers.digital/dennis.willers/Tabu-Middleware:latest
- docker build -t hub.willers.digital/dennis.willers/tabu-middleware .
- docker push hub.willers.digital/dennis.willers/tabu-middleware:latest
delete-old-container:
stage: delete
......@@ -23,9 +23,9 @@ delete-old-container:
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh-add <(echo "$STAGING_PRIVATE_KEY")
script:
- ssh root@willers.digital -p 2233 "/usr/local/bin/docker stop Tabu-Middleware"
- ssh root@willers.digital -p 2233 "/usr/local/bin/docker rm Tabu-Middleware"
- ssh root@willers.digital -p 2233 "/usr/local/bin/docker rmi -f hub.willers.digital/dennis.willers/Tabu-Middleware:latest"
- ssh root@willers.digital -p 2233 "/usr/local/bin/docker stop tabu-middleware"
- ssh root@willers.digital -p 2233 "/usr/local/bin/docker rm tabu-middleware"
- ssh root@willers.digital -p 2233 "/usr/local/bin/docker rmi -f hub.willers.digital/dennis.willers/tabu-middleware:latest"
only:
- master
allow_failure: true
......@@ -42,7 +42,7 @@ docker-deploy:
- ssh-add <(echo "$STAGING_PRIVATE_KEY")
script:
- ssh root@willers.digital -p 2233 "/usr/local/bin/docker login hub.willers.digital -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD"
- ssh root@willers.digital -p 2233 "/usr/local/bin/docker pull hub.willers.digital/dennis.willers/Tabu-Middleware:latest"
- ssh root@willers.digital -p 2233 "/usr/local/bin/docker run -d -p 3150:8080 --mount type=bind,src=/volume1/docker/tmp6,dst=/tmp --name spring-boot-docker-test-console hub.willers.digital/dennis.willers/Tabu-Middleware:latest"
- ssh root@willers.digital -p 2233 "/usr/local/bin/docker pull hub.willers.digital/dennis.willers/tabu-middleware:latest"
- ssh root@willers.digital -p 2233 "/usr/local/bin/docker run -d -p 3150:8080 --mount type=bind,src=/volume1/docker/tmp6,dst=/tmp --name tabu-middleware hub.willers.digital/dennis.willers/tabu-middleware:latest"
only:
- master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment