Skip to content

dispatch

dispatch #9

# Gross workaround because the workflow hasn't been run from the main branch.

Check failure on line 1 in .github/workflows/amphora-image-build.yml

View workflow run for this annotation

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

Invalid workflow file

(Line: 47, Col: 19): Unexpected symbol: '+'. Located at position 5 within expression: '/' + inputs.rocky9_tag if inputs.rocky9_tag is defined else ''
# DO NOT MERGE, just overriding this for testing
name: Update overcloud host image tags
on:
workflow_dispatch:
inputs:
rocky9_tag:
description: Overcloud host image tag for Rocky 9
type: string
ubuntu_noble_tag:
description: Overcloud host image tag for Ubuntu
type: string
jobs:
propose_overcloud_host_image_tag_updates:
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
name: Update overcloud host image tags
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: stackhpc/2025.1
path: ${{ github.workspace }}/src/kayobe-config
- name: Update Rocky 9 overcloud host image tag
run: |
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
if: inputs.rocky9_tag is defined
- name: Update Ubuntu Noble overcloud host image tag
run: |
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
if: inputs.ubuntu_noble_tag is defined
- name: Propose changes via PR if required
uses: peter-evans/create-pull-request@v7
with:
path: ${{ github.workspace }}/src/kayobe-config
commit-message: >-
Bump overcloud host image tags
author: stackhpc-ci <[email protected]>
branch: bump-overcloud-host-images${{ '/' + inputs.rocky9_tag if inputs.rocky9_tag is defined else '' }}${{ '/'' + inputs.ubuntu_noble_tag if inputs.ubuntu_noble_tag is defined else '' }}
delete-branch: true
title: >-
DNM test PR: Bump overcloud host image tags
body: >
This PR was created automatically to update the overcloud host image
tags to:
"{{ 'Rocky 9: ${{ inputs.rocky9_tag }}' if inputs.rocky9_tag is defined else '' }}"
"{{ 'Ubuntu Noble: ${{ inputs.ubuntu_noble_tag }}' if inputs.ubuntu_noble_tag is defined else '' }}"
labels: |
automated