From 3d0422380057692133d0633fd30ed1a4c37e1b71 Mon Sep 17 00:00:00 2001 From: Noel Miller Date: Tue, 5 Mar 2024 14:04:56 -0600 Subject: [PATCH] fix: initial attempt --- Containerfile | 2 ++ entrypoint.sh | 12 +++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Containerfile b/Containerfile index 6ca8af4..57d5e54 100644 --- a/Containerfile +++ b/Containerfile @@ -9,8 +9,10 @@ ENV IMAGE_TAG="${VERSION}" ENV VARIANT="Server" ENV VERSION="${VERSION}" ENV WEB_UI="false" +ENV OUTPUT_DIR="/github/workspace/build" RUN mkdir /build-container-installer + COPY / /build-container-installer/ WORKDIR /build-container-installer diff --git a/entrypoint.sh b/entrypoint.sh index 5005737..0570d5b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,9 +2,8 @@ set -ex -for entry in $@ -do - export $entry +for entry in $@; do + export $entry done # Pull container @@ -17,9 +16,8 @@ make boot.iso $@ make build/deploy.iso $@ # Make output dir in github workspace -mkdir /github/workspace/build || true +mkdir ${OUTPUT_DIR} || true # Copy resulting iso to github workspace and fix permissions -cp build/deploy.iso /github/workspace/build -chmod -R ugo=rwX /github/workspace/build - +cp build/deploy.iso ${OUTPUT_DIR} +chmod -R ugo=rwX ${OUTPUT_DIR}