fix Docker build and import issues

This commit is contained in:
Nick Sweeting 2024-10-08 00:12:09 -07:00
parent 835f961aed
commit 397ae1a99b
No known key found for this signature in database
6 changed files with 125 additions and 87 deletions

View file

@ -50,5 +50,12 @@ echo "${FULL_TAG_NAMES[@]}"
# docker login ghcr.io --username=pirate
echo "[^] Uploading docker image"
mkdir -p ~/.cache/docker/archivebox
# https://docs.docker.com/build/cache/backends/
# shellcheck disable=SC2068
docker buildx build --platform "$SELECTED_PLATFORMS" --push . ${FULL_TAG_NAMES[@]}
exec docker buildx build \
--platform "$SELECTED_PLATFORMS" \
--cache-from type=local,src=~/.cache/docker/archivebox \
--cache-to type=local,compression=zstd,mode=min,oci-mediatypes=true,dest=~/.cache/docker/archivebox \
--push . ${FULL_TAG_NAMES[@]}