mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-28 05:34:14 -04:00
fix Docker build and import issues
This commit is contained in:
parent
835f961aed
commit
397ae1a99b
6 changed files with 125 additions and 87 deletions
|
@ -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[@]}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue