Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
chore: Build NVIDIA ISOs during releases (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 authored Apr 14, 2023
1 parent 04fb496 commit 6b595e7
Showing 1 changed file with 49 additions and 2 deletions.
51 changes: 49 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
tag: ${{ steps.release-please.outputs.tag_name }}
release_created: ${{ steps.release-please.outputs.release_created }}

publish-iso:
publish-base-iso:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
container: fedora:latest
strategy:
matrix:
fedora-version: [ 37, 38 ]
fedora-version: [37, 38]

steps:
- name: Checkout
Expand Down Expand Up @@ -71,3 +71,50 @@ jobs:
gh release upload ${{ needs.release-please.outputs.tag }} ${{ steps.generate-iso.outputs.checksum-path }} -R ${{ github.repository }} --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-variant-iso:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
container: fedora:latest
strategy:
matrix:
fedora-version: [37, 38]
variant: [nvidia]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Generate Kickstart
id: generate-kickstart
shell: bash
run: |
dnf install -y gettext
cat kickstart.ks.tpl | envsubst > kickstart.ks
echo "kickstart-file-path=$(pwd)/kickstart.ks" >> $GITHUB_OUTPUT
env:
IMAGE_OWNER: ${{ github.repository_owner }}
IMAGE_NAME: silverblue
IMAGE_TAG: ${{ matrix.fedora-version }}-${{ matrix.variant }}

- name: Generate ISO
uses: ./.github/actions/generate-iso
id: generate-iso
with:
filename: silverblue-${{ matrix.fedora-version }}-${{ matrix.variant }}
# Currently only the development branch includes support for booting from OCI images
installer-repo: development
kickstart-file-path: ${{ steps.generate-kickstart.outputs.kickstart-file-path }}

- name: Upload ISO to Release
shell: bash
run: |
sudo dnf install 'dnf-command(config-manager)' -y
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf install gh -y
gh release upload ${{ needs.release-please.outputs.tag }} ${{ steps.generate-iso.outputs.iso-path }} -R ${{ github.repository }} --clobber
gh release upload ${{ needs.release-please.outputs.tag }} ${{ steps.generate-iso.outputs.checksum-path }} -R ${{ github.repository }} --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6b595e7

Please sign in to comment.