mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 02:38:18 +00:00
dockerbuild script: create build file if not exists
This commit is contained in:
parent
79f349608d
commit
3636142911
@ -4,6 +4,7 @@ cd "$(dirname "$0")"
|
||||
|
||||
if [[ "$1" == "dev" || "$1" == 'beta' || "$1" == 'prod' ]]
|
||||
then
|
||||
mkdir -p ../build
|
||||
rm -rf ../build/$1
|
||||
docker ps -q --filter "name=trezor-wallet" | grep -q . && docker stop trezor-wallet && docker rm -fv trezor-wallet
|
||||
docker build -t trezor-wallet ../ --build-arg BUILD_TYPE=$1
|
||||
|
Loading…
Reference in New Issue
Block a user