Skip to content

Commit e94230d

Browse files
committed
feat(justfile): add pull_policy argument so we avoid hitting limits
This is set to never with podman since I'm still experimenting.
1 parent f8e4e04 commit e94230d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

justfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ _apt_cache_sharing := if _docker_bin_name == 'podman' {
3333
',sharing=locked'
3434
}
3535

36+
# pull policy
37+
_pull_policy := if _docker_bin_name == 'podman' {
38+
'=never'
39+
} else {
40+
''
41+
}
42+
3643
targets := 'go rust rust-musl tools devcontainer'
3744

3845
load := 'false'
@@ -157,7 +164,7 @@ _build *args='':
157164
#!/usr/bin/env bash
158165
set -euo pipefail
159166

160-
cmd="{{ docker_bin }} buildx build . {{ _tag }} --pull \
167+
cmd="{{ docker_bin }} buildx build . {{ _tag }} --pull{{ _pull_policy }} \
161168
--progress='{{ DOCKER_PROGRESS }}' \
162169
{{ output }} \
163170
{{ if docker_arch != '' { '--platform=' + docker_arch } else { '' } }} \

0 commit comments

Comments
 (0)