add a Taskfile

This commit is contained in:
Jason Swank 2024-06-02 22:34:21 -04:00
parent 187efe30ae
commit 74c7f1af1b

15
Taskfile.yml Normal file
View 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