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
|
|
|
|
2020-09-20 13:46:29 +00:00
|
|
|
docker build --cache-from "$BASE_IMAGE" --tag "$BASE_IMAGE" images/base
|
|
|
|
docker build --build-arg GH_REPO="$REPO" --cache-from "$TARGET_IMAGE" --tag "$TARGET_IMAGE" "images/base-${TARGET}"
|
|
|
|
|
2020-09-27 21:11:10 +00:00
|
|
|
./generate.sh "$TARGET" "$VARIANT" "${ADDINS[@]}"
|
2020-09-02 16:07:59 +00:00
|
|
|
|
2020-09-20 13:46:29 +00:00
|
|
|
exec docker build --cache-from "$IMAGE" --tag "$IMAGE" .
|