From be27bcfbcd8527fe5f895b403df9800c06b36139 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Thu, 3 Aug 2023 23:48:18 +0200 Subject: [PATCH] feat: with shared volume Signed-off-by: kjuulh --- .drone.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2178c3a..834c29d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,10 +5,13 @@ type: docker steps: - name: build ci image: rustlang/rust:nightly + volumes: + - name: ci + path: target/debug commands: - set -e - cargo build - + - name: load_secret image: debian:buster-slim volumes: @@ -47,7 +50,6 @@ steps: when: event: - pull_request - depends_on: - "load_secret" - "build ci" @@ -60,6 +62,8 @@ steps: path: /root/.ssh/ - name: dockersock path: /var/run + - name: ci + path: target/debug commands: - eval `ssh-agent` - chmod -R 600 ~/.ssh @@ -80,6 +84,7 @@ steps: - main - master depends_on: + - "load_secret" - "build ci" - name: deploy release @@ -126,4 +131,6 @@ volumes: - name: ssh temp: {} - name: dockersock + temp: {} + - name: ci temp: {} \ No newline at end of file