Skip to content

Commit f582477

Browse files
committed
add store workflow
1 parent 1e8b3ea commit f582477

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/build-capi-vm-images.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ jobs:
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
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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}"

0 commit comments

Comments
 (0)