Skip to content
Snippets Groups Projects
Commit 83507a0d authored by Chris Hines's avatar Chris Hines
Browse files

run dev and test as appropriate

parent 5c885e0a
No related branches found
No related tags found
No related merge requests found
Pipeline #6938 passed
......@@ -22,18 +22,28 @@ build:
deploy_test:
stage: deploy
only:
- testing@hpc-team/strudelv2_spa
- test@hpc-team/strudelv2_spa
tags:
- deploy_test
variables:
DOCKER_HOST: unix:///var/run/docker.sock
script:
- echo "deploying test"
- echo "deploying dev"
- docker login -u $DOCKERHUBUSER -p $DOCKERHUBPASSWORD docker.io
- docker stop strudel2_backend || echo "Failed to stop existing container"
- docker ps -a -q | xargs -I{} docker rm {} || echo "No containers to remove"
- docker images -q | xargs -I{} docker rmi {} || echo "No images to remove"
- docker pull l1ll1/strudel2_backend:latest
- docker run -d -p 8080:8080 -p 8090:8090 --name strudel2_backend l1ll1/strudel2_backend:latest || echo "Unable to start image ... possibly the old wsgi process is still running?"
dependencies:
- build
deploy_dev:
stage: deploy
only:
- dev@hpc-team/strudelv2_spa
tags:
- deploy_test
- deploy_dev
variables:
DOCKER_HOST: unix:///var/run/docker.sock
script:
......
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