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