Add container publish logic
This commit is contained in:
7
justfile
7
justfile
@@ -1,3 +1,5 @@
|
||||
set dotenv-load
|
||||
|
||||
image := "ghcr.io/jswank/alpine-cli:latest"
|
||||
|
||||
# get a bash shell on a temporary container using {{image}}
|
||||
@@ -10,3 +12,8 @@ run:
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user