-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* determine cuda distro automatically * fix typo in CUDA samples * make facts available for cuda * add RL9 cuda build variant * fix typo in build definitions * set packer build volume sizes depending on build variant * fix volume size definition * fix cuda verfsion to workaround issue with 12-6-0-1 * don't fail all builds if one fails * bump CUDA builder disk size (build ran out of space) * download cuda image to /mnt on gh runner * download cuda image to /mnt on gh runner * fix fatimage.yml mnt permissions * Update main.yml * switch to open nvidia drivers * bump CI images * make packer build volume-backed optional again --------- Co-authored-by: bertiethorpe <[email protected]> Co-authored-by: bertiethorpe <[email protected]>
- Loading branch information
1 parent
513ad1c
commit 6ec3a73
Showing
8 changed files
with
37 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -10,16 +10,20 @@ jobs: | |
name: openstack-imagebuild | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
fail-fast: false # allow other matrix jobs to continue even if one fails | ||
matrix: # build RL8, RL9+OFED, RL9+CUDA versions | ||
os_version: | ||
- RL8 | ||
- RL9 | ||
build: | ||
- openstack.openhpc | ||
- openstack.openhpc-ofed | ||
- openstack.openhpc-cuda | ||
exclude: | ||
- os_version: RL8 | ||
build: openstack.openhpc-ofed | ||
- os_version: RL8 | ||
build: openstack.openhpc-cuda | ||
- os_version: RL9 | ||
build: openstack.openhpc | ||
env: | ||
|
@@ -81,7 +85,9 @@ jobs: | |
- name: Download image | ||
run: | | ||
. venv/bin/activate | ||
openstack image save --file ${{ steps.manifest.outputs.image-name }}.qcow2 ${{ steps.manifest.outputs.image-name }} | ||
sudo mkdir /mnt/images | ||
sudo chmod 777 /mnt/images | ||
openstack image save --file /mnt/images/${{ steps.manifest.outputs.image-name }}.qcow2 ${{ steps.manifest.outputs.image-name }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
@@ -95,13 +101,13 @@ jobs: | |
run: sudo mkdir -p './${{ steps.manifest.outputs.image-name }}' | ||
|
||
- name: mount qcow2 file | ||
run: sudo guestmount -a ${{ steps.manifest.outputs.image-name }}.qcow2 -i --ro -o allow_other './${{ steps.manifest.outputs.image-name }}' | ||
run: sudo guestmount -a /mnt/images/${{ steps.manifest.outputs.image-name }}.qcow2 -i --ro -o allow_other './${{ steps.manifest.outputs.image-name }}' | ||
|
||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: fs | ||
scan-ref: "./${{ steps.manifest.outputs.image-name }}" | ||
scan-ref: "${{ steps.manifest.outputs.image-name }}" | ||
scanners: "vuln" | ||
format: sarif | ||
output: "${{ steps.manifest.outputs.image-name }}.sarif" | ||
|
@@ -117,7 +123,7 @@ jobs: | |
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: fs | ||
scan-ref: "./${{ steps.manifest.outputs.image-name }}" | ||
scan-ref: "${{ steps.manifest.outputs.image-name }}" | ||
scanners: "vuln" | ||
format: table | ||
exit-code: '1' | ||
|
This file contains 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 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 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 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 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 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 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