2020-09-02 16:07:59 +00:00
|
|
|
#!/bin/bash
|
2020-09-02 23:03:23 +00:00
|
|
|
set -xe
|
2020-09-02 16:07:59 +00:00
|
|
|
cd "$(dirname "$0")"
|
2020-09-02 23:03:23 +00:00
|
|
|
source util/vars.sh
|
2020-09-02 16:07:59 +00:00
|
|
|
|
2021-07-07 12:37:58 +00:00
|
|
|
if [[ -z "$QUICKBUILD" ]]; then
|
|
|
|
if grep "FROM.*base.*" "images/base-${TARGET}/Dockerfile" >/dev/null 2>&1; then
|
2021-12-06 18:29:52 +00:00
|
|
|
docker buildx --builder default build --load --tag "$BASE_IMAGE" images/base
|
2021-07-07 12:37:58 +00:00
|
|
|
fi
|
2021-05-12 17:50:12 +00:00
|
|
|
|
2021-12-06 18:29:52 +00:00
|
|
|
docker buildx --builder default build --load --build-arg GH_REPO="$REPO" --tag "$TARGET_IMAGE" "images/base-${TARGET}"
|
2021-07-07 12:37:58 +00:00
|
|
|
fi
|
2020-09-20 13:46:29 +00:00
|
|
|
|
2020-09-27 21:11:10 +00:00
|
|
|
./generate.sh "$TARGET" "$VARIANT" "${ADDINS[@]}"
|
2020-09-02 16:07:59 +00:00
|
|
|
|
2021-12-06 18:29:52 +00:00
|
|
|
docker buildx --builder default build --load --tag "$IMAGE" .
|