CI: Add dependency definition, depend on deploy flag in restore job

parent 08273e9a
Pipeline #100 failed with stages
in 1 minute and 49 seconds
......@@ -62,12 +62,19 @@ buildAndTest:
- tags
deploy:
dependencies:
- buildAndTest
stage: deploy
extends: .ansible
script:
- ansible-playbook --private-key=ansible.key -i deployment/inventories/staging deployment/deploy.yml
- echo "true" > .deployed
artifacts:
paths:
- .deployed
selenium:
dependencies: []
stage: acceptance
image: golang
variables:
......@@ -89,9 +96,11 @@ selenium:
- acceptionTest.png
restore:
dependencies:
- deploy
stage: restore
extends: .ansible
script:
- test -f acceptionTest.html || exit 0
- test -f .deployed || exit 0
- ansible-playbook --private-key=ansible.key -i deployment/inventories/staging deployment/restore.yml
when: on_failure
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