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 .pdm-python
.eggs/ .eggs/
.git/ .git/
.vscode/
!.git/HEAD !.git/HEAD
!.git/refs/heads/* !.git/refs/heads/*
@ -31,6 +32,8 @@ deb_dist/
pip_dist/ pip_dist/
assets/ assets/
docker/ docker/
website/
typings/
data/ data/
data*/ data*/

View file

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

View file

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

View file

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