Added windows step
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Joe Bellus 2022-09-28 19:47:55 -04:00
parent 5eec85509a
commit 105fb866f0
1 changed files with 24 additions and 0 deletions

View File

@ -35,6 +35,30 @@ steps:
- staging
- production
- name: windows-deploy
image: rust:latest
depends_on: [ build-ui, test ]
volumes:
- name: temp
path: /app
commands:
- cp -R /app/ui ./ui/build
- cargo install -f cross
- cross build --target x86_64-pc-windows-gnu --release
- cargo build --release
- tar cvzf mailspy.tar.gz -C target/release mailspy
- wget https://dl.min.io/client/mc/release/linux-amd64/mc
- chmod +x mc
- ./mc alias set fivesigma https://objects.5sigma.io $MINIOID $MINIOSECRET
- ./mc cp mailspy.tar.gz fivesigma/public/mailspy.tar.gz
# when:
# event:
# - promote
# target:
# - staging
# - production
- name: binary-deploy
image: rust:latest
depends_on: [ build-ui, test ]