alpine-cli/Taskfile.yml
2024-06-02 22:34:21 -04:00

16 lines
441 B
YAML

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