diff --git a/ci/deploy.yml b/ci/deploy.yml index 4aa3206cd..ebcd1c28d 100644 --- a/ci/deploy.yml +++ b/ci/deploy.yml @@ -246,6 +246,25 @@ ui tests fixtures deploy: tags: - deploy +ui tests ui2 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: + - core device ui2 test + 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/ui_tests + # 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: diff --git a/docs/ci/jobs.md b/docs/ci/jobs.md index a9e4418e5..257d33b24 100644 --- a/docs/ci/jobs.md +++ b/docs/ci/jobs.md @@ -272,7 +272,7 @@ Consists of **2 jobs** below: --- ## DEPLOY stage - [deploy.yml](../../ci/deploy.yml) -Consists of **13 jobs** below: +Consists of **14 jobs** below: ### [release core fw regular deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L5) @@ -296,8 +296,10 @@ Consists of **13 jobs** below: ### [ui tests fixtures deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L229) -### [sync emulators to aws](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L251) +### [ui tests ui2 fixtures deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L249) -### [common sync](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L276) +### [sync emulators to aws](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L270) + +### [common sync](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L295) ---