1
0
Fork 1
mirror of https://example.com synced 2024-11-23 09:36:38 +09:00
firefish/neko/update/docker.sh

22 lines
446 B
Bash
Executable file

#!/bin/sh
set -eu
. neko/update/utils
pull() {
say 'Pulling the image...'
run 'docker pull docker.io/naskya/firefish'
}
if ! pull; then
say '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
docker build --tag docker.io/naskya/firefish --build-arg VERSION="$(version)" .
EOC
)"
fi
say 'Done!'