Add docker.io image
This commit is contained in:
parent
c2753e0d38
commit
f406f171f2
@ -1,8 +1,8 @@
|
|||||||
image: alpine/edge
|
image: alpine/edge
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
- 0f9c437f-5dfc-49f1-abfb-0030f265c018
|
- 0ee986ff-5686-43cd-ac3a-1fe5b2e5dd8f
|
||||||
- f523ee29-5ef8-490f-8903-43ad7c49060b
|
- f523ee29-5ef8-490f-8903-43ad7c49060b
|
||||||
|
|
||||||
sources:
|
sources:
|
||||||
- https://git.sr.ht/~jswank/alpine-cli
|
- https://git.sr.ht/~jswank/alpine-cli
|
||||||
@ -32,3 +32,4 @@ tasks:
|
|||||||
- publish: |
|
- publish: |
|
||||||
cd alpine-cli
|
cd alpine-cli
|
||||||
chpst -e ~/.envdir sudo --preserve-env just publish
|
chpst -e ~/.envdir sudo --preserve-env just publish
|
||||||
|
chpst -e ~/.envdir sudo --preserve-env just ci-publish-dh
|
||||||
|
|||||||
13
justfile
13
justfile
@ -1,15 +1,22 @@
|
|||||||
set dotenv-load
|
set dotenv-load
|
||||||
|
|
||||||
image := "ghcr.io/jswank/alpine-cli:latest"
|
image := "jswank/alpine-cli:latest"
|
||||||
n := "alpine-cli"
|
n := "alpine-cli"
|
||||||
|
|
||||||
# build a new image
|
# build a new image
|
||||||
build:
|
build:
|
||||||
podman build -t {{image}} -f Dockerfile ./ctx
|
podman build -t {{image}} -f build/Dockerfile .
|
||||||
|
|
||||||
# publish the image
|
# publish the image
|
||||||
publish:
|
publish:
|
||||||
@ echo $GH_PAT | podman login ghcr.io -u jswank --password-stdin >/dev/null 2>&1
|
@ 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
|
@ 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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user