Compare commits

...

2 Commits

Author SHA1 Message Date
Joe Bellus 1c1b101d41 Merge pull request 'Added drone configuration' (#1) from drone-ci into main
Reviewed-on: #1
2022-07-28 18:26:00 +00:00
Joe Bellus 307255a8c7 Added drone configuration 2022-07-28 14:02:09 -04:00
1 changed files with 45 additions and 0 deletions

45
drone.yml Normal file
View File

@ -0,0 +1,45 @@
kind: pipeline
name: main-pipeline
platform:
os: linux
arch: amd64
steps:
- name: test
image: rust
commands:
- cargo test
- name: build
image: rust
volumes:
- name: temp
path: /app
commands:
- cargo build --release
- cp target/release/vade /app/vade
when:
event:
- promote
- name: stage-deploy
image: plugins/docker
privileged: true
volumes:
- name: temp
path: /app
settings:
username:
from_secret: CONTAINER_USER
password:
from_secret: CONTAINER_PASSWORD
registry: git.5sigma.io
context: /app
repo: git.5sigma.io/vade/app
tags: latest
when:
event:
- promote
target:
- staging
- production
volumes:
- name: temp
temp: {}