mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-11 07:50:57 +00:00
ci: fix upgrade tests deploy when commit has two tags
This commit is contained in:
parent
4b5a84eab7
commit
f82e28ee6f
@ -163,9 +163,9 @@ upgrade tests core deploy:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- core unix frozen debug build
|
- core unix frozen debug build
|
||||||
script:
|
script:
|
||||||
- TAG=`git tag --points-at HEAD | sed "s/\//-/"`
|
- TAG=`git tag --points-at HEAD | grep "core" | sed "s/\//-/"`
|
||||||
- "[[ ! $TAG =~ 'core' ]] && echo 'Tag is not core/*: exiting.' && exit 1"
|
- "[[ $TAG == '' ]] && echo 'Tag is not core/*: exiting.' && exit 1"
|
||||||
- DEST=${DEPLOY_PATH}/trezor-emu-`git tag --points-at HEAD | sed "s/\//-/"`
|
- DEST=${DEPLOY_PATH}/trezor-emu-$TAG
|
||||||
- echo "Deploying to $DEST"
|
- echo "Deploying to $DEST"
|
||||||
- rsync --delete -va core/build/unix/micropython "$DEST"
|
- rsync --delete -va core/build/unix/micropython "$DEST"
|
||||||
only:
|
only:
|
||||||
@ -183,9 +183,9 @@ upgrade tests legacy deploy:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- legacy emu regular build
|
- legacy emu regular build
|
||||||
script:
|
script:
|
||||||
- TAG=`git tag --points-at HEAD | sed "s/\//-/"`
|
- TAG=`git tag --points-at HEAD | grep "legacy" | sed "s/\//-/"`
|
||||||
- "[[ ! $TAG =~ 'legacy' ]] && echo 'Tag is not legacy/*: exiting.' && exit 1"
|
- "[[ $TAG == '' ]] && echo 'Tag is not legacy/*: exiting.' && exit 1"
|
||||||
- DEST=${DEPLOY_PATH}/trezor-emu-`git tag --points-at HEAD | sed "s/\//-/"`
|
- DEST=${DEPLOY_PATH}/trezor-emu-$TAG
|
||||||
- echo "Deploying to $DEST"
|
- echo "Deploying to $DEST"
|
||||||
- rsync --delete -va legacy/firmware/trezor.elf "$DEST"
|
- rsync --delete -va legacy/firmware/trezor.elf "$DEST"
|
||||||
only:
|
only:
|
||||||
|
Loading…
Reference in New Issue
Block a user