alpine-cli/justfile
2023-02-27 15:12:37 -05:00

20 lines
432 B
Makefile

set dotenv-load
image := "ghcr.io/jswank/alpine-cli:latest"
# get a bash shell on a temporary container using {{image}}
all: run
# get a bash shell on a temporary container using {{image}}
run:
@ docker run -ti --rm {{image}}
# build a new image
build:
docker build -t {{image}} -f Dockerfile ./ctx
publish:
echo $GH_PAT | docker login ghcr.io -u jswank --password-stdin
docker push {{image}}
docker logout ghcr.io