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

tags

parent 75a909a2
No related branches found
No related tags found
No related merge requests found
Pipeline #6810 failed
......@@ -12,10 +12,10 @@ build:
DOCKER_DRIVER: overlay2
script:
- docker login -u $DOCKERHUBUSER -p $DOCKERHUBPASSWORD docker.io
- docker build --tag=l1ll1/tes .
- docker push l1ll1/tes:latest
- docker build --tag=l1ll1/strudel2_backend .
- docker push l1ll1/strudel2_backend:latest
tags:
- build_tes
- build_strudel2_backend
deploy_test:
stage: deploy
......@@ -37,10 +37,10 @@ deploy_dev:
script:
- echo "deploying dev"
- docker login -u $DOCKERHUBUSER -p $DOCKERHUBPASSWORD docker.io
- docker stop l1ll1/tes:latest || echo "Failed to stop existing container"
- docker stop l1ll1/strudel2_backend:latest || 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/tes:latest
- docker run -d -p 6080:8080 l1ll1/tes:latest || echo "Unable to start image ... possibly the old wsgi process is still running?"
- docker pull l1ll1/strudel2_backend:latest
- docker run -d -p 6080:8080 l1ll1/strudel2_backend:latest || echo "Unable to start image ... possibly the old wsgi process is still running?"
dependencies:
- build
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