Skip to content
Snippets Groups Projects
Commit 94d662fe authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

run prod-deploy only when `TARGET_ENV` is production and remove manual gating

parent 4d30ff15
No related branches found
No related tags found
No related merge requests found
......@@ -158,10 +158,11 @@ production-deploy:
- ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$prod_floating_ip sudo mount /dev/vdb1 /var/lib/mysql
- ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$prod_floating_ip sudo systemctl start mariadb
when: manual
needs:
- job: tf-apply
artifacts: true
rules:
- if: '$TARGET_ENV != "dev"'
- if: '$TARGET_ENV == "production"'
clean-up:
stage: cleanup
......
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