Skip to content

Commit c271b1a

Browse files
committed
Add periodic host image build capabilities
1 parent ddadf4c commit c271b1a

File tree

2 files changed

+64
-1
lines changed

2 files changed

+64
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Periodic overcloud host images build
3+
on:
4+
schedule:
5+
# Runs every Monday at 3:30 AM ("30 3 * * 1").
6+
- cron: "30 3 * * 1"
7+
8+
jobs:
9+
x86-overcloud-host-image-build:
10+
name: Build x86_64 overcloud host images
11+
uses: ./.github/workflows/overcloud-host-image-build.yml
12+
with:
13+
runner_env: "SMS Lab"
14+
cpu-platform-architecture: "x86_64"
15+
rocky9: true
16+
ubuntu-noble: true
17+
ubuntu-jammy: true
18+
secrets: inherit
19+
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
20+
21+
aarch64-overcloud-host-image-build:
22+
name: Build aarch64 overcloud host images
23+
uses: ./.github/workflows/overcloud-host-image-build.yml
24+
with:
25+
runner_env: "SMS Lab"
26+
cpu-platform-architecture: "aarch64"
27+
rocky9: true
28+
ubuntu-noble: true
29+
ubuntu-jammy: true
30+
secrets: inherit
31+
if: github.repository == 'stackhpc/stackhpc-kayobe-config'

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

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Build overcloud host images
33
on:
4+
#THIS IS FOR THE MANUAL ACTION DISPATCH
45
workflow_dispatch:
56
inputs:
67
rocky9:
@@ -14,7 +15,7 @@ on:
1415
ubuntu-jammy:
1516
description: Build Ubuntu 22.04 Jammy
1617
type: boolean
17-
default: False
18+
default: false
1819
runner_env:
1920
description: Which cloud to run on?
2021
type: choice
@@ -34,6 +35,37 @@ on:
3435
required: true
3536
CLOUDS_YAML:
3637
required: true
38+
CLOUDS_YAML_OTHER_CLOUD:
39+
required: true
40+
OS_APPLICATION_CREDENTIAL_ID:
41+
required: true
42+
OS_APPLICATION_CREDENTIAL_SECRET:
43+
required: true
44+
#THIS IS FOR THE PERIODIC WORKFLOW
45+
workflow_call:
46+
inputs:
47+
rocky9:
48+
type: boolean
49+
default: true
50+
ubuntu-noble:
51+
type: boolean
52+
default: true
53+
ubuntu-jammy:
54+
type: boolean
55+
default: true
56+
runner_env:
57+
type: string
58+
default: SMS Lab
59+
cpu-platform-architecture:
60+
type: string
61+
required: true
62+
secrets:
63+
KAYOBE_VAULT_PASSWORD:
64+
required: true
65+
CLOUDS_YAML:
66+
required: true
67+
CLOUDS_YAML_OTHER_CLOUD:
68+
required: true
3769
OS_APPLICATION_CREDENTIAL_ID:
3870
required: true
3971
OS_APPLICATION_CREDENTIAL_SECRET:

0 commit comments

Comments
 (0)