Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch to bootc-warehouse/bootc-image-builder-action #152

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/build-iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,29 @@

- name: Build ISO
id: build
uses: centos-workstation/bootc-image-builder-action@main
uses: bootc-warehouse/bootc-image-builder-action@main

Check warning on line 41 in .github/workflows/build-iso.yml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

.github/workflows/build-iso.yml#L41

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
with:
config-file: ./image-builder-iso.config.toml
image: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}

- name: Extract ISO path
id: extract-iso-path
run: |
ISO_PATH=$(echo ${{ steps.build.outputs.output-paths }} | jq -r '.[] | select(.type == "bootiso") | .path')
echo "ISO_PATH=$ISO_PATH" >> $GITHUB_OUTPUTS

- name: Patch ISO with our branding
run: |
just patch-iso-branding 1 ${{ steps.build.outputs.output-path }}
just patch-iso-branding 1 ${{ steps.extract-iso-path.outputs.ISO_PATH }}

- name: Rename ISO
id: rename
env:
OUTPUT_PATH: ${{ steps.build.outputs.output-path }}
OUTPUT_PATH: ${{ steps.extract-iso-path.outputs.ISO_PATH }}
OUTPUT_DIRECTORY: ${{ steps.build.outputs.output-directory }}
CHECKSUM_PATH: ${{ steps.build.outputs.checksum-path }}
IMAGE_NAME: ${{ env.IMAGE_NAME }}
run: |
mv $OUTPUT_PATH $OUTPUT_DIRECTORY/$IMAGE_NAME.iso
mv $CHECKSUM_PATH $OUTPUT_DIRECTORY/$IMAGE_NAME.iso-CHECKSUM

- name: Upload to Job Artifacts
if: inputs.upload-to-cloudflare == false
Expand Down