Skip to content

Commit a58bd19

Browse files
committed
PR WIP
1 parent e557197 commit a58bd19

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/amphora-image-build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929

3030
- name: Update Rocky 9 overcloud host image tag
3131
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-
if: "${{ github.event.inputs.rocky9_tag != '' }}"
32+
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
33+
if: "${{ inputs.rocky9_tag != '' }}"
3434

3535
- name: Update Ubuntu Noble overcloud host image tag
3636
run: |
37-
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
38-
if: "${{ github.event.inputs.ubuntu_noble_tag != '' }}"
37+
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
38+
if: "${{ inputs.ubuntu_noble_tag != '' }}"
3939

4040
- name: Propose changes via PR if required
4141
uses: peter-evans/create-pull-request@v7
@@ -44,14 +44,14 @@ jobs:
4444
commit-message: >-
4545
Bump overcloud host image tags
4646
author: stackhpc-ci <[email protected]>
47-
branch: bump-overcloud-host-images/${{ inputs.rocky9_tag }}/${{ inputs.ubuntu_noble_tag }}
47+
branch: bump-overcloud-host-images-${{ inputs.rocky9_tag }}-${{ inputs.ubuntu_noble_tag }}
4848
delete-branch: true
4949
title: >-
5050
DNM test PR: Bump overcloud host image tags
51-
body: >
51+
body: |
5252
This PR was created automatically to update the overcloud host image
53-
tags to:
54-
Rocky 9: ${{ inputs.rocky9_tag }}
55-
Ubuntu Noble: ${{ inputs.ubuntu_noble_tag }}
53+
tags.
54+
Rocky 9: ${{ inputs.rocky9_tag != '' ? inputs.rocky9_tag : 'N/A' }}
55+
Ubuntu Noble: ${{ inputs.ubuntu_noble_tag != '' ? inputs.ubuntu_noble_tag : 'N/A' }}
5656
labels: |
5757
automated

0 commit comments

Comments
 (0)