23 lines
540 B
YAML
23 lines
540 B
YAML
version: '3'
|
|
|
|
env:
|
|
IMAGE: jswank/pants
|
|
TAG: latest
|
|
|
|
tasks:
|
|
default:
|
|
cmds:
|
|
- task: build
|
|
build:
|
|
desc: build a new image
|
|
cmd: podman build -t ${IMAGE}:${TAG} {{.CLI_ARGS}} -f Dockerfile ctx
|
|
rebuild:
|
|
desc: rebuild a new image
|
|
cmds:
|
|
- podman rmi docker.io/library/python:3.10-bookworm
|
|
- task: build
|
|
run:
|
|
desc: run an ephemeral pants container, mounting the pants repo
|
|
cmd: podman run -ti -v $HOME/volumes/repos:/home/pants/repos --rm -w /home/pants/repos/ets-pants jswank/pants:latest
|
|
|