1
0
Fork 1
mirror of https://example.com synced 2024-11-24 01:16:40 +09:00
firefish/neko/update/container.sh
naskya ddbf884cb5
dev: add ability to pass --docker, --podman, or --native to update.sh
passing more than one of these flags is not expected
2024-01-09 10:50:34 +09:00

22 lines
476 B
Bash
Executable file

#!/bin/sh
set -eu
. neko/update/utils
pull() {
say 'Pulling the image...'
run "$1 pull registry.code.naskya.net/naskya/firefish"
}
if ! pull "$1"; then
sadsay 'awawa, the image may not be compatible with your environment...'
say 'Gonnya try building the image locally!'
say 'It takes some time! Why not brew a cup of cofe?'
run "$(cat - << EOC
$1 build --tag registry.code.naskya.net/naskya/firefish --build-arg VERSION="$(version)" .
EOC
)"
fi
say 'Done!'