fix switched stg/prod conditional for osbs custom build
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
7484cdcbbb
commit
150a115b39
1 changed files with 2 additions and 2 deletions
|
@ -406,13 +406,13 @@
|
|||
shell: "oc adm policy add-role-to-user -n default osbs-custom-build {{ osbs_koji_stg_username }} --role-namespace=default && touch /etc/origin/koji-custom-build-policy-added"
|
||||
args:
|
||||
creates: "/etc/origin/koji-builder-policy-added"
|
||||
when: env == "production"
|
||||
when: env == "staging"
|
||||
environment: "{{ osbs_environment }}"
|
||||
- name: set custom build policy for koji builder in openshift for osbs
|
||||
shell: "oc adm policy add-role-to-user -n default osbs-custom-build {{ osbs_koji_prod_username }} --role-namespace=default && touch /etc/origin/koji-custom-build-policy-added"
|
||||
args:
|
||||
creates: "/etc/origin/koji-builder-policy-added"
|
||||
when: env == "staging"
|
||||
when: env == "production"
|
||||
environment: "{{ osbs_environment }}"
|
||||
- name: set custom build policy for builder service account in openshift for osbs
|
||||
shell: "oc adm policy add-role-to-user -n default osbs-custom-build system:serviceaccount:default:builder --role-namespace=default && touch /etc/origin/koji-builder-policy-added"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue