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

ci: simplify regular expressions for release and tags

This commit is contained in:
Tomas Susanka 2020-04-09 12:08:56 +00:00
parent 2b031990f8
commit 6901cb7cdf
2 changed files with 12 additions and 12 deletions

View File

@ -16,7 +16,7 @@ release core fw regular deploy:
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
only:
- /^core\/v[0-9.]*$/
- /^core\//
except:
- branches # run for tags only
tags:
@ -36,7 +36,7 @@ release core fw btconly deploy:
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
only:
- /^core\/v[0-9.]*$/
- /^core\//
except:
- branches # run for tags only
tags:
@ -56,7 +56,7 @@ release legacy fw regular deploy:
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
only:
- /^legacy\/v[0-9.]*$/
- /^legacy\//
except:
- branches # run for tags only
tags:
@ -76,7 +76,7 @@ legacy fw btconly deploy:
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
only:
- /^legacy\/v[0-9.]*$/
- /^legacy\//
except:
- branches # run for tags only
tags:
@ -98,7 +98,7 @@ rc core fw regular deploy:
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
only:
- /^release\/[0-9]{4}-[0-9]{2}$/
- /^release\//
tags:
- deploy
@ -115,7 +115,7 @@ rc core fw btconly deploy:
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
only:
- /^release\/[0-9]{4}-[0-9]{2}$/
- /^release\//
tags:
- deploy
@ -132,7 +132,7 @@ rc legacy fw regular deploy:
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
only:
- /^release\/[0-9]{4}-[0-9]{2}$/
- /^release\//
tags:
- deploy
@ -149,7 +149,7 @@ rc legacy fw btconly deploy:
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
only:
- /^release\/[0-9]{4}-[0-9]{2}$/
- /^release\//
tags:
- deploy
@ -169,7 +169,7 @@ upgrade tests core deploy:
- echo "Deploying to $DEST"
- rsync --delete -va core/build/unix/micropython "$DEST"
only:
- /^core\/v[0-9.]*$/
- /^core\//
except:
- branches # run for tags only
tags:
@ -189,7 +189,7 @@ upgrade tests legacy deploy:
- echo "Deploying to $DEST"
- rsync --delete -va legacy/firmware/trezor.elf "$DEST"
only:
- /^legacy\/v[0-9.]*$/
- /^legacy\//
except:
- branches # run for tags only
tags:

View File

@ -326,8 +326,8 @@ hardware legacy device test:
extends: .legacy_job
only:
- schedules # nightly build
- /^legacy\/v[0-9.]*$/
- /^release\/[0-9]{4}-[0-9]{2}$/
- /^legacy\//
- /^release\//
tags:
- tpmb
dependencies: