Fix the rewrite of the old URL, and allow the build to be triggered correctly by the CI.
This commit is contained in:
parent
ffa2e53994
commit
8ddef2584b
2 changed files with 4 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ trigger_build_on_openshift:
|
||||||
- if: '$OPENSHIFT_BUILD_WEBHOOK_SECRET'
|
- if: '$OPENSHIFT_BUILD_WEBHOOK_SECRET'
|
||||||
script:
|
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
|
- 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
|
||||||
|
- curl -X POST -k https://openshift.cern.ch:443/apis/build.openshift.io/v1/namespaces/cara/buildconfigs/cara-router/webhooks/${OPENSHIFT_BUILD_WEBHOOK_SECRET}/generic
|
||||||
|
|
||||||
|
|
||||||
deploy_to_test:
|
deploy_to_test:
|
||||||
|
|
@ -36,4 +37,5 @@ deploy_to_test:
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
- curl -X POST -k https://openshift-dev.cern.ch:443/apis/build.openshift.io/v1/namespaces/test-cara/buildconfigs/test-cara/webhooks/${OPENSHIFT_TEST_BUILD_WEBHOOK_SECRET}/generic
|
- curl -X POST -k https://openshift-dev.cern.ch:443/apis/build.openshift.io/v1/namespaces/test-cara/buildconfigs/cara-app/webhooks/${OPENSHIFT_TEST_BUILD_WEBHOOK_SECRET}/generic
|
||||||
|
- curl -X POST -k https://openshift-dev.cern.ch:443/apis/build.openshift.io/v1/namespaces/test-cara/buildconfigs/cara-router/webhooks/${OPENSHIFT_TEST_BUILD_WEBHOOK_SECRET}/generic
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ http {
|
||||||
|
|
||||||
# Before implementing the nginx router we could access /voila/render/cara.ipynb.
|
# Before implementing the nginx router we could access /voila/render/cara.ipynb.
|
||||||
# Redirect this (and all other) URLs to the new scheme.
|
# Redirect this (and all other) URLs to the new scheme.
|
||||||
|
absolute_redirect off;
|
||||||
rewrite ^/voila/(.*)$ /voila-server/voila/$1 redirect;
|
rewrite ^/voila/(.*)$ /voila-server/voila/$1 redirect;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue