From 6ebb38890557a33ea3ba15414b7148d6bcfc107e Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Fri, 19 Jun 2020 19:34:31 +0000 Subject: [PATCH] ci: add debug firmwares to releases --- ci/deploy.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/ci/deploy.yml b/ci/deploy.yml index cc623946d9..467a3fa223 100644 --- a/ci/deploy.yml +++ b/ci/deploy.yml @@ -82,6 +82,46 @@ release legacy fw btconly deploy: tags: - deploy +release core fw regular debug deploy: + stage: deploy + variables: + DEPLOY_DIRECTORY: "releases/firmwares" + before_script: [] # no pipenv + dependencies: + - core fw regular debug build + script: + - export VERSION=$(./tools/version.sh core/embed/firmware/version.h) + - export NAME="trezor-fw-regular-debug-$VERSION-$CI_COMMIT_SHORT_SHA.bin" + - echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME" + - mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}" + - rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME" + only: + - /^core\// + except: + - branches # run for tags only + tags: + - deploy + +release legacy fw debug deploy: + stage: deploy + variables: + DEPLOY_DIRECTORY: "releases/firmwares" + before_script: [] # no pipenv + dependencies: + - legacy fw debug build + script: + - export VERSION=$(./tools/version.sh legacy/firmware/version.h) + - export NAME="trezor-fw-regular-debug-$VERSION-$CI_COMMIT_SHORT_SHA.bin" + - echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME" + - mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}" + - rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME" + only: + - /^legacy\// + except: + - branches # run for tags only + tags: + - deploy + # Release candidates