mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-23 20:53:09 +00:00
fix docker build cache
This commit is contained in:
parent
d9fef4cd84
commit
58e37a5e19
4 changed files with 8 additions and 5 deletions
|
@ -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*/
|
||||
|
|
|
@ -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[@]}
|
||||
|
|
|
@ -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"}]
|
||||
|
|
2
uv.lock
2
uv.lock
|
@ -41,7 +41,7 @@ wheels = [
|
|||
|
||||
[[package]]
|
||||
name = "archivebox"
|
||||
version = "0.8.5rc5"
|
||||
version = "0.8.5rc6"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "atomicwrites" },
|
||||
|
|
Loading…
Reference in a new issue