mirror of
https://example.com
synced 2024-11-22 21:36:39 +09:00
dev: minor update in docker.sh
This commit is contained in:
parent
21a07539a3
commit
69a3bacb32
1 changed files with 5 additions and 2 deletions
|
@ -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!'
|
||||||
|
|
Loading…
Reference in a new issue