fix docker build cache

This commit is contained in:
Nick Sweeting 2024-10-08 00:38:04 -07:00
parent d9fef4cd84
commit 58e37a5e19
No known key found for this signature in database
4 changed files with 8 additions and 5 deletions

View file

@ -9,6 +9,7 @@ __pycache__/
.pdm-python
.eggs/
.git/
.vscode/
!.git/HEAD
!.git/refs/heads/*
@ -31,6 +32,8 @@ deb_dist/
pip_dist/
assets/
docker/
website/
typings/
data/
data*/

View file

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

View file

@ -1,6 +1,6 @@
[project]
name = "archivebox"
version = "0.8.5rc5"
version = "0.8.5rc6"
requires-python = ">=3.10"
description = "Self-hosted internet archiving solution."
authors = [{name = "Nick Sweeting", email = "pyproject.toml@archivebox.io"}]

View file

@ -41,7 +41,7 @@ wheels = [
[[package]]
name = "archivebox"
version = "0.8.5rc5"
version = "0.8.5rc6"
source = { editable = "." }
dependencies = [
{ name = "atomicwrites" },