Trigger an openshift deployment if the tests pass.

This commit is contained in:
Phil Elson 2020-10-20 10:21:01 +02:00
parent 8eb256795c
commit f684f73d82

View file

@ -19,3 +19,9 @@ test_dev:
extends: .acc_py_dev_test
trigger_build_on_openshift:
stage: deploy
rules:
- if: '$OPENSHIFT_BUILD_WEBHOOK_SECRET'
script:
- curl -X POST -k https://openshift.cern.ch:443/apis/build.openshift.io/v1/namespaces/cara/buildconfigs/cara-app/webhooks/${OPENSHIFT_BUILD_WEBHOOK_SECRET}/generic