feat: with shared volume
Some checks reported errors
continuous-integration/drone/push Build encountered an error

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-08-03 23:48:18 +02:00
parent b23ca68c62
commit be27bcfbcd
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -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: {}