cli: correct image tag, add update recipe

This commit is contained in:
Jason Swank 2023-11-19 22:19:49 -05:00
parent 541bfdace3
commit 6d05c0a034

10
bin/cli
View File

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