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

20 lines
452 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 >/dev/null 2>&1
docker push {{image}}
@ docker logout ghcr.io