Added CI foundation
continuous-integration/drone Build is failing
Details
continuous-integration/drone Build is failing
Details
This commit is contained in:
parent
4ac8229ddc
commit
99c032ec2c
|
@ -0,0 +1,43 @@
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-ui
|
||||||
|
image: node:16.13-slim
|
||||||
|
volumes:
|
||||||
|
- name: temp
|
||||||
|
path: /app
|
||||||
|
commands:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get -y install libssl-dev
|
||||||
|
- npm install
|
||||||
|
- npm run build
|
||||||
|
- cp -R ./ui/build /app/dist
|
||||||
|
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: rust:latest
|
||||||
|
commands:
|
||||||
|
- rustup component add clippy
|
||||||
|
- cargo clippy
|
||||||
|
- cargo test --all
|
||||||
|
|
||||||
|
- name: binary-deploy
|
||||||
|
image: rust:latest
|
||||||
|
commands:
|
||||||
|
- 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
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: temp
|
||||||
|
temp: {}
|
Loading…
Reference in New Issue