-
Notifications
You must be signed in to change notification settings - Fork 23
Automatically build and promote overcloud host images #1898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Alex-Welsh
merged 1 commit into
stackhpc/2025.1
from
automatically-build-overcloud-host-images
Oct 7, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # This file is a list of path filters for the overcloud host image build workflow in .github/workflows/trigger-overcloud-host-image-build.yml. | ||
| pulp-repo-versions: &pulp-repo-versions | ||
| - 'etc/kayobe/pulp-repo-versions.yml' |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| --- | ||
| name: Trigger overcloud host image build | ||
| on: | ||
| push: | ||
| branches: | ||
| - stackhpc/2025.1 | ||
|
|
||
| jobs: | ||
| check-changes: | ||
| runs-on: ubuntu-24.04 | ||
| name: Check changed files | ||
| if: github.repository == 'stackhpc/stackhpc-kayobe-config' | ||
| outputs: | ||
| pulp-repo-versions: ${{ steps.changes.outputs.pulp-repo-versions }} | ||
| steps: | ||
| - name: GitHub Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Check changed files | ||
| uses: dorny/paths-filter@v3 | ||
| id: changes | ||
| with: | ||
| filters: .github/overcloud-host-image-build-path-filters.yml | ||
|
|
||
| trigger-overcloud-host-image-build: | ||
| runs-on: ubuntu-24.04 | ||
| name: Trigger overcloud host image build | ||
| needs: | ||
| - check-changes | ||
| if: ${{ needs.check-changes.outputs.pulp-repo-versions == 'true' }} | ||
| steps: | ||
| - name: Trigger overcloud host image build | ||
| run: | | ||
| gh workflow run \ | ||
| overcloud-host-image-build.yml \ | ||
| --repo stackhpc/stackhpc-kayobe-config \ | ||
| --ref $BRANCH_NAME | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
|
|
||
| - name: Display link to overcloud host image build workflows | ||
| run: | | ||
| echo "::notice Overcloud host image build workflows: https://github.com/stackhpc/stackhpc-kayobe-config/actions/workflows/overcloud-host-image-build.yml" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| --- | ||
| 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 }}/" ${{ github.workspace }}/src/kayobe-config/etc/kayobe/pulp-host-image-versions.yml | ||
| if: "${{ inputs.rocky9_tag != '' }}" | ||
|
|
||
| - 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 }}/" ${{ github.workspace }}/src/kayobe-config/etc/kayobe/pulp-host-image-versions.yml | ||
| if: "${{ inputs.ubuntu_noble_tag != '' }}" | ||
|
|
||
| - 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 <22933334+stackhpc-ci@users.noreply.github.com> | ||
| branch: bump-overcloud-host-images-${{ inputs.rocky9_tag }}-${{ inputs.ubuntu_noble_tag }} | ||
seunghun1ee marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| delete-branch: true | ||
| title: >- | ||
| Bump overcloud host image tags | ||
| body: | | ||
| This PR was created automatically to update the overcloud host image | ||
| tags. | ||
| Rocky 9: ${{ inputs.rocky9_tag }} | ||
| Ubuntu Noble: ${{ inputs.ubuntu_noble_tag }} | ||
| labels: | | ||
| automated | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.