Skip to content

Commit 97b5014

Browse files
committed
PR WIP
1 parent e557197 commit 97b5014

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ jobs:
2121
pull-requests: write
2222
name: Update overcloud host image tags
2323
steps:
24+
- name: Validate inputs
25+
run: |
26+
if [[ ${{ inputs.rocky9_tag }} == '' && ${{ inputs.ubuntu_noble_tag }} == '' ]]; then
27+
echo "At least one tag must be provided."
28+
exit 1
29+
fi
30+
2431
- name: Checkout
2532
uses: actions/checkout@v4
2633
with:
@@ -29,12 +36,12 @@ jobs:
2936

3037
- name: Update Rocky 9 overcloud host image tag
3138
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
39+
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
3340
if: "${{ github.event.inputs.rocky9_tag != '' }}"
3441

3542
- name: Update Ubuntu Noble overcloud host image tag
3643
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
44+
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
3845
if: "${{ github.event.inputs.ubuntu_noble_tag != '' }}"
3946

4047
- name: Propose changes via PR if required

0 commit comments

Comments
 (0)