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

fix: action and entrypoint

This commit is contained in:
Noel Miller 2024-03-07 12:15:09 -06:00
parent 0404361854
commit 468c599735
2 changed files with 6 additions and 3 deletions

View file

@ -65,7 +65,7 @@ runs:
# Check if running inside of the action repo
if [[ -z "${{ github.action_ref }}" ]]; then if [[ "${{ github.ref_name }}" =~ (.*)/merge ]]; then tag=pr-${BASH_REMATCH[1]}; else tag=${{ github.ref_name }}; fi; fi
if [[ -z "${tag}" ]]; then tag=${{ github.action_ref }}; fi
docker run --privileged --volume /github/workspace:/build-container-installer/build ghcr.io/jasonn3/build-container-installer:${tag} \
docker run --privileged --volume ${{ github.workspace }}:/github/workspace ghcr.io/jasonn3/build-container-installer:${tag} \
ARCH=${{ inputs.arch }} \
IMAGE_NAME=${{ inputs.image_name }} \
IMAGE_REPO=${{ inputs.image_repo }} \
@ -80,8 +80,8 @@ runs:
- name: Rename ISO file
shell: bash
run: |
mv /github/workspace/deploy.iso /github/workspace/${{ inputs.iso_name }}.iso
cd /github/workspace
mv ${{ github.workspace }}/deploy.iso ${{ github.workspace }}/${{ inputs.iso_name }}.iso
cd ${{ github.workspace }}
sha256sum ${{ inputs.iso_name }}.iso > ${{ inputs.iso_name }}-CHECKSUM
echo "ISO_PATH=$(realpath ${{ github.workspace }}/${{ inputs.iso_name }}.iso)" >> $GITHUB_OUTPUT
echo "CHECKSUM_PATH=$(realpath ${{ github.workspace }}/${{ inputs.iso_name }}-CHECKSUM)" >> $GITHUB_OUTPUT

View file

@ -15,3 +15,6 @@ make boot.iso $@
# Add container to ISO
make build/deploy.iso $@
cp build/deploy.iso /github/workspace/build
chmod -R ugo=rwx /github/workspace/build