From 6d05c0a0343162b46b6dddcf33184d334a971081 Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Sun, 19 Nov 2023 22:19:49 -0500 Subject: [PATCH] cli: correct image tag, add update recipe --- bin/cli | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/cli b/bin/cli index 465a824..d783a99 100755 --- a/bin/cli +++ b/bin/cli @@ -1,6 +1,6 @@ #!/usr/bin/env -S just --working-directory . --justfile -image := "ghcr.io/jswank/alpine-cli:latest" +image := "ghcr.io/jswank/alpine-cli:edge" n := "alpine-cli" # Invoke the 'run' recipe @@ -14,8 +14,8 @@ default: run # cli run # # Run an ephemeral container. -@run: - podman run -ti --userns=keep-id --rm {{image}} +@run run_args="": + podman run -ti --userns=keep-id --rm {{run_args}} {{image}} # Usage: persist # @@ -59,6 +59,10 @@ save i=image: # Remove a running container, and run the default recipe @restart: clean default +# Pull the latest published image +@update: + podman pull {{image}} + # Display this listing. Detailed help is available with 'help recipe_name'. help recipe="help": #!/bin/sh