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
|
.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*/
|
||||||
|
|
|
@ -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[@]}
|
||||||
|
|
|
@ -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"}]
|
||||||
|
|
2
uv.lock
2
uv.lock
|
@ -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" },
|
||||||
|
|
Loading…
Reference in a new issue