Hmm we actually want to do this on prod only
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
264616c766
commit
1a6d5d2676
1 changed files with 4 additions and 2 deletions
|
@ -148,20 +148,22 @@
|
||||||
command: oc -n bodhi scale dc/bodhi-web --replicas={{ bodhi_openshift_pods }}
|
command: oc -n bodhi scale dc/bodhi-web --replicas={{ bodhi_openshift_pods }}
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
# Redeploy the build config as it may request a newer version in the Dockerfile
|
# Redeploy the build config as it may request a newer version in the Dockerfile
|
||||||
|
# Only do it on prod because staging tracks a branch
|
||||||
- import_role:
|
- import_role:
|
||||||
name: openshift/object
|
name: openshift/object
|
||||||
vars:
|
vars:
|
||||||
app: bodhi
|
app: bodhi
|
||||||
template: buildconfig.yml
|
template: buildconfig.yml
|
||||||
objectname: buildconfig.yml
|
objectname: buildconfig.yml
|
||||||
when: env == "staging"
|
when: env != "staging"
|
||||||
# Start a build with the new buildconfig
|
# Start a build with the new buildconfig
|
||||||
|
# Only do it on prod because staging builds are triggered by Github's webhook
|
||||||
- import_role:
|
- import_role:
|
||||||
name: openshift/start-build
|
name: openshift/start-build
|
||||||
vars:
|
vars:
|
||||||
app: bodhi
|
app: bodhi
|
||||||
buildname: bodhi-base
|
buildname: bodhi-base
|
||||||
when: env == "staging"
|
when: env != "staging"
|
||||||
|
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: tell nagios to unshush w.r.t. the frontend
|
- name: tell nagios to unshush w.r.t. the frontend
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue