diff --git a/Taskfile.yaml b/Taskfile.yaml index 9015e80..a69a701 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -34,18 +34,20 @@ tasks: release: desc: Run the release container command locally cmds: + - mkdir -p $(pwd)/cache - | docker run --rm \ --cpu-shares=4096 \ --memory=6g \ --cpus=4 \ -v $(pwd):/workspace \ - -v $(pwd)/cache:/kaniko/cache \ + -v $(pwd)/cache:/cache \ -w /workspace \ gcr.io/kaniko-project/executor:v1.23.2-debug \ --dockerfile=./Dockerfile \ --target=minimal \ --build-arg=TARGET_ARCH=aarch64-unknown-linux-musl \ --no-push \ - --no-push-cache \ - --tar-path=/app + --tar-path=/workspace/my-image.tar \ + --cache-dir=/cache \ + --cache-ttl=336h