2626 options :
2727 - centos
2828 - ubuntu
29+ push :
30+ description : Whether to push images
31+ type : boolean
32+ required : false
33+ default : true
2934
3035env :
3136 ANSIBLE_FORCE_COLOR : True
@@ -99,9 +104,13 @@ jobs:
99104
100105 - name : Build and push kolla overcloud images
101106 run : |
107+ args="${{ github.event.inputs.regexes }} -e kolla_base_distro=${{ inputs.distro }}"
108+ if ${{ inputs.push }} == 'true'; then
109+ args="$args --push"
110+ fi
102111 source venvs/kayobe/bin/activate &&
103112 source src/kayobe-config/kayobe-env --environment ci-builder &&
104- kayobe overcloud container image build ${{ github.event.inputs.regexes }} --push -e kolla_base_distro=${{ inputs.distro }}
113+ kayobe overcloud container image build "$args"
105114 env :
106115 KAYOBE_VAULT_PASSWORD : ${{ secrets.KAYOBE_VAULT_PASSWORD }}
107116 if : github.event.inputs.overcloud == 'true'
@@ -126,9 +135,13 @@ jobs:
126135
127136 - name : Build and push kolla seed images
128137 run : |
138+ args="kolla_base_distro=${{ inputs.distro }}"
139+ if ${{ inputs.push }} == 'true'; then
140+ args="$args --push"
141+ fi
129142 source venvs/kayobe/bin/activate &&
130143 source src/kayobe-config/kayobe-env --environment ci-builder &&
131- kayobe seed container image build --push -e kolla_base_distro=${{ inputs.distro }}
144+ kayobe seed container image build "$args"
132145 env :
133146 KAYOBE_VAULT_PASSWORD : ${{ secrets.KAYOBE_VAULT_PASSWORD }}
134147 if : github.event.inputs.seed == 'true'
@@ -159,7 +172,7 @@ jobs:
159172 name : Trigger container image repository sync
160173 needs :
161174 - container-image-build
162- if : github.repository == 'stackhpc/stackhpc-kayobe-config'
175+ if : github.repository == 'stackhpc/stackhpc-kayobe-config' && inputs.push
163176 runs-on : ubuntu-latest
164177 steps :
165178 # NOTE(mgoddard): Trigger another CI workflow in the
0 commit comments