Skip to content

Commit 80e8c76

Browse files
committed
Automatically promote overcloud host images
1 parent fb142a1 commit 80e8c76

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/overcloud-host-image-promote.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ on:
1111
description: Promote Ubuntu 24.04 Noble
1212
type: boolean
1313
default: true
14-
image_tag:
15-
description: Tag to promote
16-
type: string
17-
required: true
1814
env:
1915
ANSIBLE_FORCE_COLOR: True
2016
jobs:
@@ -81,7 +77,7 @@ jobs:
8177
-e os_distribution='rocky' \
8278
-e os_release='9'
8379
env:
84-
ARTIFACT_TAG: ${{ inputs.image_tag }}
80+
ARTIFACT_TAG: "{{ stackhpc_rocky_9_overcloud_host_image_version }}"
8581
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
8682
if: inputs.rocky9
8783

@@ -95,6 +91,6 @@ jobs:
9591
-e os_distribution='ubuntu' \
9692
-e os_release='noble'
9793
env:
98-
ARTIFACT_TAG: ${{ inputs.image_tag }}
94+
ARTIFACT_TAG: "{{ stackhpc_ubuntu_noble_overcloud_host_image_version }}"
9995
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
10096
if: inputs.ubuntu-noble

.github/workflows/stackhpc-promote.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ jobs:
4444
run: |
4545
echo "::notice Container image promote workflow: https://github.com/stackhpc/stackhpc-release-train/actions/workflows/container-promote.yml"
4646
47+
- name: Trigger overcloud host image promotion
48+
run: |
49+
gh workflow run \
50+
overcloud-host-image-promote.yml \
51+
--repo stackhpc/stackhpc-kayobe-config \
52+
--ref $BRANCH_NAME
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.STACKHPC_RELEASE_TRAIN_TOKEN }}
55+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
56+
57+
- name: Display link to overcloud host image promotion workflows
58+
run: |
59+
echo "::notice Overcloud host image promote workflow: https://github.com/stackhpc/stackhpc-kayobe-config/actions/workflows/overcloud-host-image-promote.yml"
60+
4761
- name: Send message to Slack via Workflow Builder
4862
uses: slackapi/[email protected]
4963
with:

0 commit comments

Comments
 (0)