28 lines
597 B
YAML
28 lines
597 B
YAML
|
|
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: test
|
|
image: rust:latest
|
|
commands:
|
|
- rustup component add clippy
|
|
- cargo clippy
|
|
- cargo test --all
|
|
|
|
- name: deploy
|
|
image: rust:latest
|
|
commands:
|
|
- cargo build --release
|
|
- tar cvzf conductor.tar.gz -C target/release conductor
|
|
- 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 conductor.tar.gz fivesigma/public/conductor.tar.gz
|
|
# when:
|
|
# event:
|
|
# - promote
|
|
# target:
|
|
# - staging
|
|
# - production
|