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:
parent
7b11754a5d
commit
70be95cd83
2 changed files with 15 additions and 1 deletions
5
.github/workflows/build-and-test.yml
vendored
5
.github/workflows/build-and-test.yml
vendored
|
|
@ -86,6 +86,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build ISO with new container
|
- name: Build ISO with new container
|
||||||
uses: ./
|
uses: ./
|
||||||
|
id: build
|
||||||
with:
|
with:
|
||||||
arch: ${{ env.ARCH}}
|
arch: ${{ env.ARCH}}
|
||||||
image_name: ${{ env.IMAGE_NAME}}
|
image_name: ${{ env.IMAGE_NAME}}
|
||||||
|
|
@ -101,7 +102,9 @@ jobs:
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.ISO_NAME }}.iso
|
name: ${{ env.ISO_NAME }}.iso
|
||||||
path: ${{ github.workspace}}/*
|
path: |
|
||||||
|
${{ steps.build.outputs.iso-path }}
|
||||||
|
${{ steps.build.outputs.checksum-path }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 0
|
retention-days: 0
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
|
|
|
||||||
11
action.yml
11
action.yml
|
|
@ -47,10 +47,19 @@ inputs:
|
||||||
description: Space delimetered list of additional Lorax templates to include
|
description: Space delimetered list of additional Lorax templates to include
|
||||||
required: false
|
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:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Run docker image
|
- name: Run docker image
|
||||||
|
id: run_docker
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# Check if running inside of the action repo
|
# Check if running inside of the action repo
|
||||||
|
|
@ -68,4 +77,6 @@ runs:
|
||||||
ENROLLMENT_PASSWORD=${{ inputs.enrollment_password }} \
|
ENROLLMENT_PASSWORD=${{ inputs.enrollment_password }} \
|
||||||
SECURE_BOOT_KEY_URL=${{ inputs.secure_boot_key_url }} \
|
SECURE_BOOT_KEY_URL=${{ inputs.secure_boot_key_url }} \
|
||||||
"ADDITIONAL_TEMPLATES=${{ inputs.additional_templates }}"
|
"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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue