add a Taskfile
This commit is contained in:
parent
187efe30ae
commit
74c7f1af1b
15
Taskfile.yml
Normal file
15
Taskfile.yml
Normal file
@ -0,0 +1,15 @@
|
||||
version: '3'
|
||||
env:
|
||||
IMAGE: jswank/alpine-cli
|
||||
NAME: alpine-cli
|
||||
TAG: 3
|
||||
tasks:
|
||||
default:
|
||||
cmds:
|
||||
- task: build
|
||||
build:
|
||||
desc: build a new image
|
||||
cmds:
|
||||
- (podman manifest exists {{.IMAGE}}:{{.TAG}} && podman manifest rm {{.IMAGE}}:{{.TAG}}) || true
|
||||
- podman manifest create {{.IMAGE}}:{{.TAG}}
|
||||
- podman build --platform linux/amd64,linux/arm64 --manifest {{.IMAGE}}:{{.TAG}} {{.CLI_ARGS}} -f Dockerfile ctx
|
||||
Loading…
Reference in New Issue
Block a user