Skip to content

Commit 3fa4e91

Browse files
committed
update-overcloud-host-image-tags.yml working
1 parent 81955d7 commit 3fa4e91

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/update-overcloud-host-image-tags.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Update overcloud host image tags
23

34
on:
@@ -6,11 +7,9 @@ on:
67
rocky9_tag:
78
description: Overcloud host image tag for Rocky 9
89
type: string
9-
required: true
1010
ubuntu_noble_tag:
1111
description: Overcloud host image tag for Ubuntu
1212
type: string
13-
required: true
1413

1514
jobs:
1615
propose_overcloud_host_image_tag_updates:
@@ -27,10 +26,15 @@ jobs:
2726
ref: stackhpc/2025.1
2827
path: ${{ github.workspace }}/src/kayobe-config
2928

30-
- name: Update overcloud host image tags
29+
- name: Update Rocky 9 overcloud host image tag
3130
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 != '' }}"
3438

3539
- name: Propose changes via PR if required
3640
uses: peter-evans/create-pull-request@v7
@@ -39,13 +43,13 @@ jobs:
3943
commit-message: >-
4044
Bump overcloud host image tags
4145
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 }}
4347
delete-branch: true
4448
title: >-
4549
DNM test PR: Bump overcloud host image tags
46-
body: >
50+
body: |
4751
This PR was created automatically to update the overcloud host image
48-
tags to:
52+
tags.
4953
Rocky 9: ${{ inputs.rocky9_tag }}
5054
Ubuntu Noble: ${{ inputs.ubuntu_noble_tag }}
5155
labels: |

0 commit comments

Comments
 (0)