|
|
|
@ -186,7 +186,7 @@ release core unix debug deploy:
|
|
|
|
|
script:
|
|
|
|
|
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
|
|
|
|
- DEST="$DEPLOY_PATH/trezor-emu-core-v$VERSION"
|
|
|
|
|
- DEST_ARM="$DEPLOY_PATH/trezor-emu-core-arm-v$VERSION"
|
|
|
|
|
- DEST_ARM="$DEPLOY_PATH/arm/trezor-emu-core-v$VERSION-arm"
|
|
|
|
|
- echo "Deploying to $DEST and $DEST_ARM"
|
|
|
|
|
- nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 core/build/unix/trezor-emu-core"
|
|
|
|
|
- nix-shell -p patchelf --run "patchelf --set-interpreter /lib/ld-linux-aarch64.so.1 core/build/unix/trezor-emu-core-arm"
|
|
|
|
@ -211,7 +211,7 @@ release legacy unix debug deploy:
|
|
|
|
|
script:
|
|
|
|
|
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
|
|
|
|
- DEST="$DEPLOY_PATH/trezor-emu-legacy-v$VERSION"
|
|
|
|
|
- DEST_ARM="$DEPLOY_PATH/trezor-emu-legacy-arm-v$VERSION"
|
|
|
|
|
- DEST_ARM="$DEPLOY_PATH/arm/trezor-emu-legacy-v$VERSION-arm"
|
|
|
|
|
- echo "Deploying to $DEST and $DEST_ARM"
|
|
|
|
|
- nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 legacy/firmware/trezor.elf"
|
|
|
|
|
- nix-shell -p patchelf --run "patchelf --set-interpreter /lib/ld-linux-aarch64.so.1 legacy/firmware/trezor-arm.elf"
|
|
|
|
@ -263,6 +263,7 @@ sync emulators to aws:
|
|
|
|
|
- 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
|
|
|
|
|
- wget https://firmware.corp.sldev.cz/releases/emulators/arm -O index.html && aws s3 cp index.html s3://$BUCKET/dev/firmware/releases/emulators/arm
|
|
|
|
|
only:
|
|
|
|
|
- /^core\//
|
|
|
|
|
except:
|
|
|
|
@ -276,7 +277,7 @@ common sync:
|
|
|
|
|
stage: deploy
|
|
|
|
|
variables:
|
|
|
|
|
GIT_SUBMODULE_STRATEGY: "none"
|
|
|
|
|
GIT_STRATEGY: clone # clone entire repo instead of reusing workspace
|
|
|
|
|
GIT_STRATEGY: clone # clone entire repo instead of reusing workspacec
|
|
|
|
|
GIT_DEPTH: 0 # avoid shallow clone
|
|
|
|
|
only:
|
|
|
|
|
- schedules
|
|
|
|
|