From f82e28ee6f2ea5b781516190ed217ac5fee9d7ab Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Thu, 16 Apr 2020 14:43:19 +0000 Subject: [PATCH] ci: fix upgrade tests deploy when commit has two tags --- ci/deploy.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ci/deploy.yml b/ci/deploy.yml index bc312ea79..57ccadc34 100644 --- a/ci/deploy.yml +++ b/ci/deploy.yml @@ -163,9 +163,9 @@ upgrade tests core deploy: dependencies: - core unix frozen debug build script: - - TAG=`git tag --points-at HEAD | sed "s/\//-/"` - - "[[ ! $TAG =~ 'core' ]] && echo 'Tag is not core/*: exiting.' && exit 1" - - DEST=${DEPLOY_PATH}/trezor-emu-`git tag --points-at HEAD | sed "s/\//-/"` + - TAG=`git tag --points-at HEAD | grep "core" | sed "s/\//-/"` + - "[[ $TAG == '' ]] && echo 'Tag is not core/*: exiting.' && exit 1" + - DEST=${DEPLOY_PATH}/trezor-emu-$TAG - echo "Deploying to $DEST" - rsync --delete -va core/build/unix/micropython "$DEST" only: @@ -183,9 +183,9 @@ upgrade tests legacy deploy: dependencies: - legacy emu regular build script: - - TAG=`git tag --points-at HEAD | sed "s/\//-/"` - - "[[ ! $TAG =~ 'legacy' ]] && echo 'Tag is not legacy/*: exiting.' && exit 1" - - DEST=${DEPLOY_PATH}/trezor-emu-`git tag --points-at HEAD | sed "s/\//-/"` + - TAG=`git tag --points-at HEAD | grep "legacy" | sed "s/\//-/"` + - "[[ $TAG == '' ]] && echo 'Tag is not legacy/*: exiting.' && exit 1" + - DEST=${DEPLOY_PATH}/trezor-emu-$TAG - echo "Deploying to $DEST" - rsync --delete -va legacy/firmware/trezor.elf "$DEST" only: