Skip to content

Commit eee5481

Browse files
committed
CI: Trigger container image promotion automatically after merge
No more forgotten image promotions!
1 parent 8d8f6e0 commit eee5481

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/stackhpc-promote.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
name: Promote package repositories
2+
name: Promote Pulp repositories
33
on:
44
push:
55
branches:
66
# NOTE(upgrade): Reference only the current release branch here.
77
- stackhpc/zed
88
jobs:
99
promote:
10-
name: Trigger package repository promotion
10+
name: Trigger Pulp promotion workflows
1111
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
1212
runs-on: ubuntu-latest
1313
permissions: {}
@@ -27,3 +27,19 @@ jobs:
2727
- name: Display link to package repository promotion workflows
2828
run: |
2929
echo "::notice Package repository promote workflow: https://github.com/stackhpc/stackhpc-release-train/actions/workflows/package-promote.yml"
30+
31+
# NOTE(mgoddard): Trigger another CI workflow in the
32+
# stackhpc-release-train repository.
33+
- name: Trigger container image promotion
34+
run: |
35+
gh workflow run \
36+
container-promote.yml \
37+
--repo stackhpc/stackhpc-release-train \
38+
--ref main \
39+
-f kayobe_config_branch=${{ github.ref_name }}
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.STACKHPC_RELEASE_TRAIN_TOKEN }}
42+
43+
- name: Display link to container image promotion workflows
44+
run: |
45+
echo "::notice Container image promote workflow: https://github.com/stackhpc/stackhpc-release-train/actions/workflows/container-promote.yml"

0 commit comments

Comments
 (0)