20 lines
452 B
Makefile
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
|