From 307255a8c7a5f519e4d8f0b5e5d94afbb07527b6 Mon Sep 17 00:00:00 2001 From: Joe Bellus Date: Thu, 28 Jul 2022 14:02:09 -0400 Subject: [PATCH] Added drone configuration --- drone.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 drone.yml diff --git a/drone.yml b/drone.yml new file mode 100644 index 0000000..0ef4c9b --- /dev/null +++ b/drone.yml @@ -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: {} -- 2.40.1