ci: upload emulators and ui_tests to public storage

pull/2143/head
vdovhanych 2 years ago committed by matejcik
parent 28d282101e
commit d0148e020b

@ -230,6 +230,7 @@ ui tests fixtures deploy:
stage: deploy
variables:
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/ui_tests/"
BUCKET: "data.trezor.io"
GIT_SUBMODULE_STRATEGY: "none"
before_script: [] # no poetry
needs:
@ -238,6 +239,34 @@ ui tests fixtures deploy:
script:
- echo "Deploying to $DEPLOY_PATH"
- rsync --delete -va ci/ui_test_records/* "$DEPLOY_PATH"
- source ${AWS_DEPLOY_DATA}
- aws s3 sync $DEPLOY_PATH s3://$BUCKET/dev/firmware
# This "hack" is needed because aws does not have an easy option to generate autoindex. We fetch the one autogenerated by nginx on local server.
- wget https://firmware.corp.sldev.cz/ui_tests/ -O index.html && aws s3 cp index.html s3://$BUCKET/dev/firmware/ui_tests
tags:
- deploy
# sync to aws
sync emulators to aws:
stage: deploy
variables:
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators"
BUCKET: "data.trezor.io"
GIT_SUBMODULE_STRATEGY: "none"
before_script: [] # no poetry
needs:
- release legacy unix debug deploy
- release core unix debug deploy
script:
- source ${AWS_DEPLOY_DATA}
- aws s3 --sync $DEPLOY_PATH s3://$BUCKET/dev/firmware
# This "hack" is needed because aws does not have an easy option to generate autoindex. We fetch the one autogenerated by nginx on local server.
- wget https://firmware.corp.sldev.cz/releases/emulators/ -O index.html && aws s3 cp index.html s3://$BUCKET/dev/firmware/releases/emulators
only:
- /^core\//
except:
- branches # run for tags only
tags:
- deploy

Loading…
Cancel
Save