Add container publish logic

This commit is contained in:
Jason Swank
2023-02-27 15:12:37 -05:00
parent c1408d1777
commit 9b86268f35
2 changed files with 14 additions and 1 deletions

View File

@@ -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