16 lines
321 B
Makefile
16 lines
321 B
Makefile
set dotenv-load
|
|
|
|
image := "ghcr.io/jswank/alpine-cli:latest"
|
|
n := "alpine-cli"
|
|
|
|
# build a new image
|
|
build:
|
|
podman build -t {{image}} -f Dockerfile ./ctx
|
|
|
|
# publish the image
|
|
publish:
|
|
@ echo $GH_PAT | podman login ghcr.io -u jswank --password-stdin >/dev/null 2>&1
|
|
podman push {{image}}
|
|
@ podman logout ghcr.io
|
|
|