Skip to content

Commit 097cdae

Browse files
committed
fix nightly building fatimage in ci, revert to matrix.build
1 parent 4a3f195 commit 097cdae

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/fatimage.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
openstack:
1616
name: openstack-imagebuild
1717
concurrency:
18-
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os_version }} # to branch/PR + OS
18+
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os_version }}-${{ matrix.build }} # to branch/PR + OS + build
1919
cancel-in-progress: true
2020
runs-on: ubuntu-22.04
2121
strategy:
@@ -24,6 +24,8 @@ jobs:
2424
os_version:
2525
- RL8
2626
- RL9
27+
build:
28+
- openstack.openhpc
2729
env:
2830
ANSIBLE_FORCE_COLOR: True
2931
OS_CLOUD: openstack
@@ -37,7 +39,6 @@ jobs:
3739
"openstack.openhpc": "rocky-latest-RL9"
3840
}
3941
}
40-
BUILD: openstack.openhpc
4142
4243
steps:
4344
- uses: actions/checkout@v2
@@ -83,13 +84,13 @@ jobs:
8384
8485
PACKER_LOG=1 packer build \
8586
-on-error=${{ vars.PACKER_ON_ERROR }} \
86-
-only=${{ env.BUILD }} \
87+
-only=${{ matrix.build }} \
8788
-var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
8889
-var "source_image_name=${{ env.SOURCE_IMAGE }}" \
8990
openstack.pkr.hcl
9091
env:
9192
PKR_VAR_os_version: ${{ matrix.os_version }}
92-
SOURCE_IMAGE: ${{ fromJSON(env.SOURCE_IMAGES_MAP)[matrix.os_version][env.BUILD] }}
93+
SOURCE_IMAGE: ${{ fromJSON(env.SOURCE_IMAGES_MAP)[matrix.os_version][matrix.build] }}
9394

9495
- name: Get created image names from manifest
9596
id: manifest
@@ -106,7 +107,7 @@ jobs:
106107
- name: Upload manifest artifact
107108
uses: actions/upload-artifact@v4
108109
with:
109-
name: image-details-${{ env.BUILD }}-${{ matrix.os_version }}
110+
name: image-details-${{ matrix.build }}-${{ matrix.os_version }}
110111
path: |
111112
./image-id.txt
112113
./image-name.txt

.github/workflows/nightlybuild.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
openstack:
1818
name: openstack-imagebuild
1919
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os_version }} # to branch/PR + OS
20+
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os_version }}-${{ matrix.build }} # to branch/PR + OS + build
2121
cancel-in-progress: true
2222
runs-on: ubuntu-22.04
2323
strategy:
@@ -26,6 +26,8 @@ jobs:
2626
os_version:
2727
- RL8
2828
- RL9
29+
build:
30+
- openstack.rocky-latest
2931
env:
3032
ANSIBLE_FORCE_COLOR: True
3133
OS_CLOUD: openstack
@@ -35,7 +37,6 @@ jobs:
3537
"RL8": "Rocky-8-GenericCloud-Base-8.9-20231119.0.x86_64.qcow2",
3638
"RL9": "Rocky-9-GenericCloud-Base-9.4-20240523.0.x86_64.qcow2"
3739
}
38-
BUILD: openstack.openhpc
3940
4041
steps:
4142
- uses: actions/checkout@v2
@@ -81,7 +82,7 @@ jobs:
8182
8283
PACKER_LOG=1 packer build \
8384
-on-error=${{ vars.PACKER_ON_ERROR }} \
84-
-only=${{ env.BUILD }} \
85+
-only=${{ matrix.build }} \
8586
-var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
8687
-var "source_image_name=${{ env.SOURCE_IMAGE }}" \
8788
openstack.pkr.hcl

0 commit comments

Comments
 (0)