From b5426359d649e408298a7a0f06197761fe3bf2cd Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Mon, 8 May 2023 22:15:16 -0400 Subject: [PATCH] add version 3 --- Dockerfile | 2 +- justfile | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index d4e66ae..81588a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" \ diff --git a/justfile b/justfile index 940a62f..6a1e09c 100644 --- a/justfile +++ b/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}} -