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