1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

fix: updated action to use outputs and build-and-test to use outputs

This commit is contained in:
Noel Miller 2024-03-06 03:55:38 -06:00
parent 7b11754a5d
commit 70be95cd83
2 changed files with 15 additions and 1 deletions

View file

@ -86,6 +86,7 @@ jobs:
- name: Build ISO with new container
uses: ./
id: build
with:
arch: ${{ env.ARCH}}
image_name: ${{ env.IMAGE_NAME}}
@ -101,7 +102,9 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ env.ISO_NAME }}.iso
path: ${{ github.workspace}}/*
path: |
${{ steps.build.outputs.iso-path }}
${{ steps.build.outputs.checksum-path }}
if-no-files-found: error
retention-days: 0
compression-level: 0

View file

@ -47,10 +47,19 @@ inputs:
description: Space delimetered list of additional Lorax templates to include
required: false
outputs:
iso-path:
value: ${{ steps.run_docker.outputs.ISO_PATH }}
description: The location of the .iso object
checksum-path:
value: ${{ steps.run_docker.outputs.CHECKSUM_PATH }}
description: The location of the checksum
runs:
using: composite
steps:
- name: Run docker image
id: run_docker
shell: bash
run: |
# Check if running inside of the action repo
@ -68,4 +77,6 @@ runs:
ENROLLMENT_PASSWORD=${{ inputs.enrollment_password }} \
SECURE_BOOT_KEY_URL=${{ inputs.secure_boot_key_url }} \
"ADDITIONAL_TEMPLATES=${{ inputs.additional_templates }}"
echo "ISO_PATH=$(realpath ${{ github.workspace }}/${{ inputs.iso_name }}.iso)" >> $GITHUB_OUTPUT
echo "CHECKSUM_PATH=$(realpath ${{ github.workspace }}/${{ inputs.iso_name }}-CHECKSUM)" >> $GITHUB_OUTPUT