17 lines
477 B
Bash
Executable File
17 lines
477 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
TARGET_NAME="aarch64-bookworm"
|
|
|
|
TAG_UNIQUE_ID=`(git ls-tree HEAD; git diff-index HEAD) | sha256sum | cut -c-16`
|
|
TAG_NAME="${TARGET_NAME}_${TAG_UNIQUE_ID}"
|
|
OUT_DIR="out_$TARGET_NAME"
|
|
|
|
rm -rf $OUT_DIR
|
|
|
|
set -e
|
|
mkdir $OUT_DIR
|
|
|
|
./build-image.sh aarch64 bookworm $TAG_UNIQUE_ID
|
|
|
|
docker run --rm --mount type=bind,source="$(pwd)"/$OUT_DIR,target=/out --mount type=bind,source="$(pwd)"/debian,target=/opt/debian -e COMMIT="$3" drho1y/moonlight-packaging:$TAG_NAME
|