Add docker.io image

This commit is contained in:
Jason Swank 2023-03-13 20:13:27 -04:00
parent c2753e0d38
commit f406f171f2
2 changed files with 13 additions and 5 deletions

View File

@ -1,7 +1,7 @@
image: alpine/edge
secrets:
- 0f9c437f-5dfc-49f1-abfb-0030f265c018
- 0ee986ff-5686-43cd-ac3a-1fe5b2e5dd8f
- f523ee29-5ef8-490f-8903-43ad7c49060b
sources:
@ -32,3 +32,4 @@ tasks:
- publish: |
cd alpine-cli
chpst -e ~/.envdir sudo --preserve-env just publish
chpst -e ~/.envdir sudo --preserve-env just ci-publish-dh

View File

@ -1,15 +1,22 @@
set dotenv-load
image := "ghcr.io/jswank/alpine-cli:latest"
image := "jswank/alpine-cli:latest"
n := "alpine-cli"
# build a new image
build:
podman build -t {{image}} -f Dockerfile ./ctx
podman build -t {{image}} -f build/Dockerfile .
# publish the image
publish:
@ echo $GH_PAT | podman login ghcr.io -u jswank --password-stdin >/dev/null 2>&1
podman push {{image}}
podman push ghcr.io/{{image}}
@ podman logout ghcr.io
# publish the image to Dockerhub / docker.io
publish-dh:
@ podman tag {{image}} docker.io/{{image}}
@ echo $DH_PAT | podman login docker.io -u jswank --password-stdin >/dev/null 2>&1
podman push docker.io/{{image}}
@ podman logout docker.io