Skip to content

Commit 5ae7231

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 be11c0c commit 5ae7231

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

justfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ podman_remote := if _docker_bin_name == 'podman' {
2626
'false'
2727
}
2828

29+
# pull policy
30+
_pull_policy := if _docker_bin_name == 'podman' {
31+
'=never'
32+
} else {
33+
''
34+
}
35+
2936
targets := 'go rust rust-musl tools devcontainer'
3037

3138
load := 'false'
@@ -152,7 +159,7 @@ _build *args='':
152159
#!/usr/bin/env bash
153160
set -euo pipefail
154161

155-
cmd="{{ docker_bin }} buildx build . {{ _tag }} --pull \
162+
cmd="{{ docker_bin }} buildx build . {{ _tag }} --pull{{ _pull_policy }} \
156163
--progress='{{ DOCKER_PROGRESS }}' \
157164
{{ output }} \
158165
{{ if docker_arch != '' { '--platform=' + docker_arch } else { '' } }} \

0 commit comments

Comments
 (0)