cli: correct image tag, add update recipe
This commit is contained in:
parent
541bfdace3
commit
6d05c0a034
10
bin/cli
10
bin/cli
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env -S just --working-directory . --justfile
|
#!/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"
|
n := "alpine-cli"
|
||||||
|
|
||||||
# Invoke the 'run' recipe
|
# Invoke the 'run' recipe
|
||||||
@ -14,8 +14,8 @@ default: run
|
|||||||
# cli run
|
# cli run
|
||||||
#
|
#
|
||||||
# Run an ephemeral container.
|
# Run an ephemeral container.
|
||||||
@run:
|
@run run_args="":
|
||||||
podman run -ti --userns=keep-id --rm {{image}}
|
podman run -ti --userns=keep-id --rm {{run_args}} {{image}}
|
||||||
|
|
||||||
# Usage: persist
|
# Usage: persist
|
||||||
#
|
#
|
||||||
@ -59,6 +59,10 @@ save i=image:
|
|||||||
# Remove a running container, and run the default recipe
|
# Remove a running container, and run the default recipe
|
||||||
@restart: clean default
|
@restart: clean default
|
||||||
|
|
||||||
|
# Pull the latest published image
|
||||||
|
@update:
|
||||||
|
podman pull {{image}}
|
||||||
|
|
||||||
# Display this listing. Detailed help is available with 'help recipe_name'.
|
# Display this listing. Detailed help is available with 'help recipe_name'.
|
||||||
help recipe="help":
|
help recipe="help":
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user