Compare commits

...

4 Commits

Author SHA1 Message Date
Joe Bellus 970f5424dc Change dind image
continuous-integration/drone/push Build encountered an error Details
2022-09-28 21:39:17 -04:00
Joe Bellus 6b25955105 Added DinD for windows build
continuous-integration/drone/push Build is failing Details
2022-09-28 21:26:54 -04:00
Joe Bellus a9e915d219 Removed condition for build-ui for testing
continuous-integration/drone/push Build is failing Details
2022-09-28 21:15:05 -04:00
Joe Bellus 105fb866f0 Added windows step
continuous-integration/drone/push Build was killed Details
2022-09-28 19:47:55 -04:00
1 changed files with 40 additions and 6 deletions

View File

@ -28,12 +28,36 @@ steps:
- npm install - npm install
- npm run build - npm run build
- cp -R ./build /app/ui - cp -R ./build /app/ui
when: # when:
event: # event:
- promote # - promote
target: # target:
- staging # - staging
- production # - 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 - name: binary-deploy
image: rust:latest image: rust:latest
@ -100,7 +124,17 @@ steps:
- staging - staging
- production - production
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes: volumes:
- name: temp - name: temp
temp: {} temp: {}
- name: dockersock
temp: {}