1
0
Fork 1
mirror of https://example.com synced 2024-11-23 10:26:39 +09:00
firefish/neko/update/container.sh

23 lines
476 B
Bash
Raw Normal View History

#!/bin/sh
set -eu
. neko/update/utils
pull() {
2023-11-18 16:37:55 +09:00
say 'Pulling the image...'
2024-01-05 08:03:42 +09:00
run "$1 pull registry.code.naskya.net/naskya/firefish"
}
2024-01-05 08:03:42 +09:00
if ! pull "$1"; then
sadsay 'awawa, the image may not be compatible with your environment...'
2023-11-18 16:37:55 +09:00
say 'Gonnya try building the image locally!'
2023-11-18 16:37:55 +09:00
say 'It takes some time! Why not brew a cup of cofe?'
2023-11-21 03:23:06 +09:00
run "$(cat - << EOC
2024-01-05 08:03:42 +09:00
$1 build --tag registry.code.naskya.net/naskya/firefish --build-arg VERSION="$(version)" .
2023-11-21 03:23:06 +09:00
EOC
)"
fi
2023-11-18 16:37:55 +09:00
say 'Done!'