1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

feat(ci): make it possible to combine --skip arguments to build-docker.sh

This commit is contained in:
Pavol Rusnak 2022-11-10 16:55:03 +01:00
parent 1852059e87
commit a393267461
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -43,6 +43,12 @@ CONTAINER_FS_URL=${CONTAINER_FS_URL:-"$ALPINE_CDN/v$ALPINE_RELEASE/releases/$ALP
VARIANTS_core=(0 1)
VARIANTS_legacy=(0 1)
if [ "$1" == "--skip-bitcoinonly" ]; then
VARIANTS_core=(0)
VARIANTS_legacy=(0)
shift
fi
if [ "$1" == "--skip-core" ]; then
VARIANTS_core=()
shift
@ -53,12 +59,6 @@ if [ "$1" == "--skip-legacy" ]; then
shift
fi
if [ "$1" == "--skip-bitcoinonly" ]; then
VARIANTS_core=(0)
VARIANTS_legacy=(0)
shift
fi
TAG=${1:-master}
REPOSITORY=${2:-/local}
PRODUCTION=${PRODUCTION:-1}