Verified Commit 709d9e14 authored by guglielmo's avatar guglielmo
Browse files

gitlab changed

parent 67914862
......@@ -106,7 +106,7 @@ deploy_staging:
- echo "$CLIENT_KEY" > $DOCKER_CERT_PATH/key.pem
- docker build --compress -t openpolis/opsv:latest .
- docker-compose down
- docker-compose up -d --build
- docker-compose up -d
- docker exec ${COMPOSE_PROJECT_NAME}_web python manage.py collectstatic --noinput
- docker exec ${COMPOSE_PROJECT_NAME}_web python manage.py migrate
- rm -rf $DOCKER_CERT_PATH
......@@ -134,7 +134,7 @@ deploy_production_opdm:
- echo "$CLIENT_KEY" > $DOCKER_CERT_PATH/key.pem
- docker build --compress -t openpolis/opsv:latest .
- docker-compose down
- docker-compose up -d --build --force-recreate
- docker-compose up -d
- docker exec ${COMPOSE_PROJECT_NAME}_web python manage.py collectstatic --noinput
- docker exec ${COMPOSE_PROJECT_NAME}_web python manage.py migrate
- rm -rf $DOCKER_CERT_PATH
......@@ -163,7 +163,7 @@ deploy_production_fb:
- echo "$CLIENT_KEY" > $DOCKER_CERT_PATH/key.pem
- docker build --compress -t openpolis/opsv:latest .
- docker-compose down
- docker-compose up -d --force-recreate
- docker-compose up -d
- docker exec ${COMPOSE_PROJECT_NAME}_web python manage.py collectstatic --noinput
- docker exec ${COMPOSE_PROJECT_NAME}_web python manage.py migrate
- rm -rf $DOCKER_CERT_PATH
......@@ -192,7 +192,7 @@ deploy_production_oc:
- echo "$CLIENT_KEY" > $DOCKER_CERT_PATH/key.pem
- docker build --compress -t openpolis/opsv:latest .
- docker-compose down
- docker-compose up -d --build --force-recreate
- docker-compose up -d
- docker exec ${COMPOSE_PROJECT_NAME}_web python manage.py collectstatic --noinput
- docker exec ${COMPOSE_PROJECT_NAME}_web python manage.py migrate
- rm -rf $DOCKER_CERT_PATH
......
Supports Markdown
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