Skip to content

Commit

Permalink
build: Add missing flags, not sure yet why kaniko is not saving into …
Browse files Browse the repository at this point in the history
…the local cache

Have to figure out why it's not saving to the local cache directory.

Signed-off-by: Eden Reich <[email protected]>
  • Loading branch information
edenreich committed Feb 24, 2025
1 parent 97b7009 commit cca01e2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cca01e2

Please sign in to comment.