1
0
Fork 1
mirror of https://example.com synced 2024-11-23 03:16:40 +09:00

dev: minor update in docker.sh

This commit is contained in:
naskya 2023-11-21 03:23:06 +09:00
parent 21a07539a3
commit 69a3bacb32
Signed by: naskya
GPG key ID: 164DFF24E2D40139

View file

@ -5,7 +5,7 @@ set -eu
pull() { pull() {
say 'Pulling the image...' say 'Pulling the image...'
docker pull docker.io/naskya/firefish run 'docker pull docker.io/naskya/firefish'
} }
if ! pull; then if ! pull; then
@ -13,7 +13,10 @@ if ! pull; then
say 'Gonnya try building the image locally!' say 'Gonnya try building the image locally!'
say 'It takes some time! Why not brew a cup of cofe?' say 'It takes some time! Why not brew a cup of cofe?'
docker build --tag docker.io/naskya/firefish --build-arg VERSION="$(version)" . run "$(cat - << EOC
docker build --tag docker.io/naskya/firefish --build-arg VERSION="$(version)" .
EOC
)"
fi fi
say 'Done!' say 'Done!'