File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 type : string
99 required : false
1010 default : " "
11+ service-group :
12+ description : Whether to build images by service group (If false images are built by regex match)
13+ type : boolean
14+ required : true
15+ default : false
1116 overcloud :
1217 description : Build container images for overcloud services?
1318 type : boolean
@@ -142,7 +147,7 @@ jobs:
142147 - name : Install package dependencies
143148 run : |
144149 sudo apt update
145- sudo apt install -y build-essential git unzip nodejs python3-wheel python3-pip python3-venv curl jq wget
150+ sudo apt install -y build-essential git unzip nodejs python3-wheel python3-pip python3-venv python3-yaml curl jq wget
146151
147152 - name : Checkout
148153 uses : actions/checkout@v6
@@ -198,11 +203,18 @@ jobs:
198203 - name : Create build logs output directory
199204 run : mkdir image-build-logs
200205
206+ - name : Get list of images of selected services
207+ id : process-regex
208+ run : |
209+ output=$(src/kayobe-config/tools/kolla-images.py get-service-images --kolla-ansible-path src/kolla-ansible --services "${{ inputs.regexes }}")
210+ echo images=$output | tee -a "$GITHUB_OUTPUT"
211+ if : inputs.service-group
212+
201213 - name : Build kolla overcloud images
202214 id : build_overcloud_images
203215 continue-on-error : true
204216 run : |
205- args="${{ inputs.regexes }}"
217+ args="${{ inputs.service-group && steps.process-regex.outputs.images || inputs. regexes }}"
206218 if [[ "${{ matrix.distro.arch }}" == 'aarch64' ]]; then
207219 args="$args -e kolla_base_arch=${{ matrix.distro.arch }}"
208220 fi
You can’t perform that action at this time.
0 commit comments