add version 3

This commit is contained in:
Jason Swank 2023-05-08 22:15:16 -04:00
parent 7d0f7c03aa
commit b5426359d6
2 changed files with 5 additions and 6 deletions

View File

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

View File

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