add CLI_ARGS to taskfile
This commit is contained in:
parent
bd2f8c93af
commit
cc4ae5b117
@ -3,6 +3,7 @@ version: '3'
|
|||||||
env:
|
env:
|
||||||
IMAGE: jswank/alpine-cli
|
IMAGE: jswank/alpine-cli
|
||||||
NAME: alpine-cli
|
NAME: alpine-cli
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
TAG:
|
TAG:
|
||||||
sh: 'grep ^FROM Dockerfile | cut -d: -f2'
|
sh: 'grep ^FROM Dockerfile | cut -d: -f2'
|
||||||
@ -15,7 +16,7 @@ tasks:
|
|||||||
cmds:
|
cmds:
|
||||||
- (podman manifest exists {{.IMAGE}}:{{.TAG}} && podman manifest rm {{.IMAGE}}:{{.TAG}}) || true
|
- (podman manifest exists {{.IMAGE}}:{{.TAG}} && podman manifest rm {{.IMAGE}}:{{.TAG}}) || true
|
||||||
- podman manifest create {{.IMAGE}}:{{.TAG}}
|
- podman manifest create {{.IMAGE}}:{{.TAG}}
|
||||||
- podman build --platform linux/amd64,linux/arm64 --manifest {{.IMAGE}}:{{.TAG}} {{.CLI_ARGS}} -f Dockerfile ctx
|
- podman build {{.CLI_ARGS}} --platform linux/amd64,linux/arm64 --manifest {{.IMAGE}}:{{.TAG}} {{.CLI_ARGS}} -f Dockerfile ctx
|
||||||
publish:
|
publish:
|
||||||
desc: publish the image
|
desc: publish the image
|
||||||
cmds:
|
cmds:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user