FFmpeg-Builds/makeimage.sh

17 lines
511 B
Bash
Raw Normal View History

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
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
fi
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}"
fi
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" .