Skip to content

Commit 6663618

Browse files
committed
test nightly build
1 parent 101f696 commit 6663618

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/fatimage.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
name: Build fat image
1+
name: Nightly fat image build
32
on:
43
workflow_dispatch:
54
inputs:
@@ -11,6 +10,8 @@ on:
1110
- LEAFCLOUD
1211
- SMS
1312
- ARCUS
13+
schedule:
14+
- cron: '0 0 * * *' # Run at midnight
1415

1516
jobs:
1617
openstack:
@@ -21,16 +22,13 @@ jobs:
2122
runs-on: ubuntu-22.04
2223
strategy:
2324
fail-fast: false # allow other matrix jobs to continue even if one fails
24-
matrix: # build RL8+OFED, RL9+OFED, RL9+OFED+CUDA versions
25+
matrix: # build RL8+OFED, RL9+OFED new base images
2526
os_version:
2627
- RL8
2728
- RL9
2829
build:
29-
- openstack.openhpc-ofed
30-
- openstack.openhpc-cuda
31-
exclude:
32-
- os_version: RL8
33-
build: openstack.openhpc-cuda
30+
- openstack.openhpc-latest
31+
3432
env:
3533
ANSIBLE_FORCE_COLOR: True
3634
OS_CLOUD: openstack
@@ -53,10 +51,10 @@ jobs:
5351
- name: Add bastion's ssh key to known_hosts
5452
run: cat environments/.stackhpc/bastion_fingerprints >> ~/.ssh/known_hosts
5553
shell: bash
56-
54+
5755
- name: Install ansible etc
5856
run: dev/setup-env.sh
59-
57+
6058
- name: Write clouds.yaml
6159
run: |
6260
mkdir -p ~/.config/openstack/
@@ -67,7 +65,7 @@ jobs:
6765
run: |
6866
. venv/bin/activate
6967
. environments/.stackhpc/activate
70-
68+
7169
- name: Build fat image with packer
7270
id: packer_build
7371
run: |
@@ -81,6 +79,7 @@ jobs:
8179
-on-error=${{ vars.PACKER_ON_ERROR }} \
8280
-only=${{ matrix.build }} \
8381
-var-file=$PKR_VAR_environment_root/${{ vars.CI_CLOUD }}.pkrvars.hcl \
82+
-var "source_image_name.${{ matrix.os_version }}=openhpc-latest-${{ matrix.os_version }}" \
8483
openstack.pkr.hcl
8584
env:
8685
PKR_VAR_os_version: ${{ matrix.os_version }}

0 commit comments

Comments
 (0)