mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
fix: added move to entrypoint
This commit is contained in:
parent
01d12228dd
commit
288976f017
4 changed files with 5 additions and 13 deletions
6
.github/workflows/build-and-test.yml
vendored
6
.github/workflows/build-and-test.yml
vendored
|
|
@ -94,16 +94,12 @@ jobs:
|
||||||
secure_boot_key_url: ${{ env.SECURE_BOOT_KEY_URL }}
|
secure_boot_key_url: ${{ env.SECURE_BOOT_KEY_URL }}
|
||||||
enrollment_password: ${{ env.ENROLLMENT_PASSWORD }}
|
enrollment_password: ${{ env.ENROLLMENT_PASSWORD }}
|
||||||
|
|
||||||
- name: Rename ISO
|
|
||||||
run: |
|
|
||||||
mv ${{ env.OUTPUT_DIR }}/deploy.iso ${{ env.OUTPUT_DIR }}/${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso
|
|
||||||
|
|
||||||
- name: Upload ISO as artifact
|
- name: Upload ISO as artifact
|
||||||
id: upload
|
id: upload
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso
|
name: ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso
|
||||||
path: ${{ env.OUTPUT_DIR }}/*.iso
|
path: ${{ github.workspace}}/{{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 0
|
retention-days: 0
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ ENV IMAGE_TAG="${VERSION}"
|
||||||
ENV VARIANT="Server"
|
ENV VARIANT="Server"
|
||||||
ENV VERSION="${VERSION}"
|
ENV VERSION="${VERSION}"
|
||||||
ENV WEB_UI="false"
|
ENV WEB_UI="false"
|
||||||
ENV OUTPUT_DIR="/build-container-installer/build"
|
|
||||||
|
|
||||||
RUN mkdir /build-container-installer
|
RUN mkdir /build-container-installer
|
||||||
|
|
||||||
|
|
@ -19,7 +18,7 @@ WORKDIR /build-container-installer
|
||||||
|
|
||||||
RUN dnf install -y make && make install-deps
|
RUN dnf install -y make && make install-deps
|
||||||
|
|
||||||
VOLUME ${OUTPUT_DIR}
|
VOLUME /build-container-installer/build
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "/build-container-installer/entrypoint.sh"]
|
ENTRYPOINT ["/bin/bash", "/build-container-installer/entrypoint.sh"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,10 +36,6 @@ inputs:
|
||||||
secure_boot_key_url:
|
secure_boot_key_url:
|
||||||
description: Secure boot key that is installed from URL location
|
description: Secure boot key that is installed from URL location
|
||||||
required: false
|
required: false
|
||||||
output_dir:
|
|
||||||
description: Define a specific output directory
|
|
||||||
required: false
|
|
||||||
default: "/build-container-installer/build"
|
|
||||||
action_version:
|
action_version:
|
||||||
description: Version of the action container to run
|
description: Version of the action container to run
|
||||||
deprecationMessage: No longer used. github.action_ref replaces the need for this. Will be removed in a future version.
|
deprecationMessage: No longer used. github.action_ref replaces the need for this. Will be removed in a future version.
|
||||||
|
|
@ -57,7 +53,7 @@ runs:
|
||||||
# Check if running inside of the action repo
|
# 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 "${{ 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
|
if [[ -z "${tag}" ]]; then tag=${{ github.action_ref }}; fi
|
||||||
docker run --privileged --volume ${{ github.workspace }}:/github/workspace/ ghcr.io/jasonn3/build-container-installer:${tag} \
|
docker run --privileged --volume ${{ github.workspace }}:/build-container-installer/build ghcr.io/jasonn3/build-container-installer:${tag} \
|
||||||
ARCH=${{ inputs.arch }} \
|
ARCH=${{ inputs.arch }} \
|
||||||
IMAGE_NAME=${{ inputs.image_name }} \
|
IMAGE_NAME=${{ inputs.image_name }} \
|
||||||
IMAGE_REPO=${{ inputs.image_repo }} \
|
IMAGE_REPO=${{ inputs.image_repo }} \
|
||||||
|
|
@ -67,6 +63,5 @@ runs:
|
||||||
WEB_UI=${{ inputs.web_ui }} \
|
WEB_UI=${{ inputs.web_ui }} \
|
||||||
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 }} \
|
||||||
OUTPUT_DIR=${{ inputs.output_dir }} \
|
|
||||||
"ADDITIONAL_TEMPLATES=${{ inputs.additional_templates }}"
|
"ADDITIONAL_TEMPLATES=${{ inputs.additional_templates }}"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,5 @@ make boot.iso $@
|
||||||
|
|
||||||
# Add container to ISO
|
# Add container to ISO
|
||||||
make build/deploy.iso $@
|
make build/deploy.iso $@
|
||||||
|
|
||||||
|
mv build/deploy.iso build/${IMAGE_NAME}-${VERSION}.iso
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue