Compare commits
4 Commits
main
...
windows-ci
Author | SHA1 | Date |
---|---|---|
Joe Bellus | 970f5424dc | |
Joe Bellus | 6b25955105 | |
Joe Bellus | a9e915d219 | |
Joe Bellus | 105fb866f0 |
46
.drone.yml
46
.drone.yml
|
@ -28,12 +28,36 @@ steps:
|
|||
- npm install
|
||||
- npm run build
|
||||
- cp -R ./build /app/ui
|
||||
when:
|
||||
event:
|
||||
- promote
|
||||
target:
|
||||
- staging
|
||||
- production
|
||||
# when:
|
||||
# event:
|
||||
# - promote
|
||||
# target:
|
||||
# - staging
|
||||
# - production
|
||||
|
||||
|
||||
- name: windows-deploy
|
||||
image: wangjia184/rust-dind
|
||||
depends_on: [ build-ui, test ]
|
||||
volumes:
|
||||
- name: temp
|
||||
path: /app
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
commands:
|
||||
- cp -R /app/ui ./ui/build
|
||||
- cross build --target x86_64-pc-windows-gnu --release
|
||||
- tar cvzf mailspy.tar.gz -C target/x86_64-pc-windows-gnu/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-win.tar.gz
|
||||
# when:
|
||||
# event:
|
||||
# - promote
|
||||
# target:
|
||||
# - staging
|
||||
# - production
|
||||
|
||||
- name: binary-deploy
|
||||
image: rust:latest
|
||||
|
@ -100,7 +124,17 @@ steps:
|
|||
- staging
|
||||
- production
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:dind
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
|
||||
|
||||
volumes:
|
||||
- name: temp
|
||||
temp: {}
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
|
|
Loading…
Reference in New Issue