1
+ ---
1
2
name : Update overcloud host image tags
2
3
3
4
on :
4
- workflow_call :
5
+ workflow_dispatch :
5
6
inputs :
6
7
rocky9_tag :
7
8
description : Overcloud host image tag for Rocky 9
8
9
type : string
9
- required : true
10
10
ubuntu_noble_tag :
11
11
description : Overcloud host image tag for Ubuntu
12
12
type : string
13
- required : true
14
13
15
14
jobs :
16
15
propose_overcloud_host_image_tag_updates :
@@ -27,10 +26,15 @@ jobs:
27
26
ref : stackhpc/2025.1
28
27
path : ${{ github.workspace }}/src/kayobe-config
29
28
30
- - name : Update overcloud host image tags
29
+ - name : Update Rocky 9 overcloud host image tag
31
30
run : |
32
- sed -i "/stackhpc_rocky_9_overcloud_host_image_version/s/.*/stackhpc_rocky_9_overcloud_host_image_version: ${{ inputs.rocky9_tag }}/" etc/kayobe/pulp-host-image-versions.yml
33
- sed -i "/stackhpc_ubuntu_noble_overcloud_host_image_version/s/.*/stackhpc_ubuntu_noble_overcloud_host_image_version: ${{ inputs.ubuntu_noble_tag }}/" etc/kayobe/pulp-host-image-versions.yml
31
+ sed -i "/stackhpc_rocky_9_overcloud_host_image_version/s/.*/stackhpc_rocky_9_overcloud_host_image_version: ${{ inputs.rocky9_tag }}/" ${{ github.workspace }}/src/kayobe-config/etc/kayobe/pulp-host-image-versions.yml
32
+ if : " ${{ inputs.rocky9_tag != '' }}"
33
+
34
+ - name : Update Ubuntu Noble overcloud host image tag
35
+ run : |
36
+ sed -i "/stackhpc_ubuntu_noble_overcloud_host_image_version/s/.*/stackhpc_ubuntu_noble_overcloud_host_image_version: ${{ inputs.ubuntu_noble_tag }}/" ${{ github.workspace }}/src/kayobe-config/etc/kayobe/pulp-host-image-versions.yml
37
+ if : " ${{ inputs.ubuntu_noble_tag != '' }}"
34
38
35
39
- name : Propose changes via PR if required
36
40
uses : peter-evans/create-pull-request@v7
@@ -39,13 +43,13 @@ jobs:
39
43
commit-message : >-
40
44
Bump overcloud host image tags
41
45
author :
stackhpc-ci <[email protected] >
42
- branch : bump-overcloud-host-images/ ${{ inputs.rocky9_tag }}
46
+ branch : bump-overcloud-host-images- ${{ inputs.rocky9_tag }}-${{ inputs.ubuntu_noble_tag }}
43
47
delete-branch : true
44
48
title : >-
45
49
DNM test PR: Bump overcloud host image tags
46
- body : >
50
+ body : |
47
51
This PR was created automatically to update the overcloud host image
48
- tags to:
52
+ tags.
49
53
Rocky 9: ${{ inputs.rocky9_tag }}
50
54
Ubuntu Noble: ${{ inputs.ubuntu_noble_tag }}
51
55
labels : |
0 commit comments