add version 3
This commit is contained in:
parent
7d0f7c03aa
commit
b5426359d6
@ -1,4 +1,4 @@
|
||||
FROM docker.io/library/alpine:edge
|
||||
FROM docker.io/library/alpine:3
|
||||
|
||||
LABEL org.opencontainers.image.title=jswank/alpine-cli \
|
||||
org.opencontainers.image.description="A minimal image for running Linux CLI utilities" \
|
||||
|
||||
9
justfile
9
justfile
@ -1,7 +1,7 @@
|
||||
set dotenv-load
|
||||
|
||||
tag := `grep ^FROM Dockerfile | cut -d: -f2`
|
||||
image := "jswank/alpine-cli:" + tag
|
||||
image := "jswank/alpine-cli"
|
||||
|
||||
registry := "ghcr.io"
|
||||
registry_user := "jswank"
|
||||
@ -14,9 +14,8 @@ build:
|
||||
podman build -t {{image}} -f Dockerfile ctx
|
||||
|
||||
# publish the image
|
||||
publish:
|
||||
@ podman tag {{image}} {{registry}}/{{image}}
|
||||
publish alt_tag=tag:
|
||||
@ podman tag {{image}}:{{tag}} {{registry}}/{{image}}:{{alt_tag}}
|
||||
@ echo "${{ registry_pass_var }}" | podman login {{registry}} -u {{registry_user}} --password-stdin
|
||||
@ podman push {{registry}}/{{image}}
|
||||
@ podman push {{registry}}/{{image}}::{{alt_tag}}
|
||||
@ podman logout {{registry}}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user