File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 3333 with :
3434 version : ${{ inputs.version || '1.33.1' }}
3535 tag : ${{ inputs.tag || '0.8' }}
36+ store-openstack-image-elastx :
37+ uses : ./.github/workflows/store-openstack-capi-image-elastx.yml
38+ needs : build-openstack-image
Original file line number Diff line number Diff line change 1+ name : Store OpenStack CAPI image on elastx
2+
3+
4+ on :
5+ workflow_call :
6+ inputs :
7+ version :
8+ description : Kubernetes version
9+ required : true
10+ type : string
11+ tag :
12+ description : ck8s-capi tag
13+ required : true
14+ type : string
15+
16+ env :
17+ version : ${{ inputs.version }}
18+ tag : ${{ inputs.tag }}
19+
20+ jobs :
21+ on-success :
22+ runs-on : ubuntu-24.04
23+
24+ steps :
25+ - name : retrieve image
26+ uses : actions/download-artifact@v5
27+ with :
28+ name : ubuntu-2404-efi-kube-${{ env.version }}-ck8s-capi-${{ env.tag }}
29+
30+ - name : store image
31+ run : |
32+
33+ image_create_extra_vars+=('--property' 'hw_firmware_type=uefi' '--property' 'hw_disk_bus=scsi' '--property' 'hw_scsi_model=virtio-scsi')
34+ image_name=ubuntu-2404-efi-kube-${{ env.version }}-ck8s-capi-${{ env.tag }}
35+ image_path=./ubuntu-2404-efi-kube-${{ env.version }}-ck8s-capi-${{ env.tag }}
36+
37+ openstack image create --disk-format qcow2 "${image_create_extra_vars[@]}" --file "${image_path}" --shared --progress "${image_name}"
You can’t perform that action at this time.
0 commit comments