Explicitly use buildx for local script

This commit is contained in:
BtbN 2021-12-06 19:29:52 +01:00
parent bdf1cc507a
commit 3efcb24f50
3 changed files with 5 additions and 6 deletions

View file

@ -26,6 +26,7 @@ jobs:
uses: docker/setup-buildx-action@v1
with:
config: .github/buildkit.toml
driver: docker
- name: Build Image
run: ./makeimage.sh ${{ matrix.target }} ${{ matrix.variant }}
- name: Build ffmpeg

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -xe
set -e
cd "$(dirname "$0")"
source util/vars.sh

View file

@ -3,16 +3,14 @@ set -xe
cd "$(dirname "$0")"
source util/vars.sh
export DOCKER_BUILDKIT=1
if [[ -z "$QUICKBUILD" ]]; then
if grep "FROM.*base.*" "images/base-${TARGET}/Dockerfile" >/dev/null 2>&1; then
docker build --tag "$BASE_IMAGE" images/base
docker buildx --builder default build --load --tag "$BASE_IMAGE" images/base
fi
docker build --build-arg GH_REPO="$REPO" --tag "$TARGET_IMAGE" "images/base-${TARGET}"
docker buildx --builder default build --load --build-arg GH_REPO="$REPO" --tag "$TARGET_IMAGE" "images/base-${TARGET}"
fi
./generate.sh "$TARGET" "$VARIANT" "${ADDINS[@]}"
exec docker build --tag "$IMAGE" .
docker buildx --builder default build --load --tag "$IMAGE" .