mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 02:47:56 +01:00
Split Makfile and move workflow to Makefile (#88)
Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
This commit is contained in:
parent
662f1a94e4
commit
b669420287
40 changed files with 800 additions and 665 deletions
|
|
@ -5,13 +5,6 @@ set -ex
|
|||
# Create /dev/loop0 if it doesn't already exist. `losetup` has an issue creating it during the first run
|
||||
mknod -m 0660 /dev/loop0 b 7 0 2>/dev/null || true
|
||||
|
||||
for i
|
||||
do
|
||||
key=$(echo ${i} | cut -d= -f1)
|
||||
value=$(echo ${i} | cut -d= -f2-)
|
||||
export ${key}="${value}"
|
||||
done
|
||||
|
||||
if [[ -d /cache/skopeo ]]
|
||||
then
|
||||
ln -s /cache/skopeo /build-container-installer/container
|
||||
|
|
@ -22,18 +15,5 @@ then
|
|||
mkdir /cache/dnf
|
||||
fi
|
||||
|
||||
# Pull container
|
||||
make container/${IMAGE_NAME}-${IMAGE_TAG} "$@"
|
||||
|
||||
# Build base ISO
|
||||
make boot.iso "$@"
|
||||
|
||||
# Add container to ISO
|
||||
make build/deploy.iso "$@"
|
||||
|
||||
# Make output dir in github workspace
|
||||
mkdir /github/workspace/build || true
|
||||
|
||||
# Copy resulting iso to github workspace and fix permissions
|
||||
cp build/deploy.iso /github/workspace/build
|
||||
chmod -R ugo=rwX /github/workspace/build
|
||||
# Run make command
|
||||
make "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue