feat: with shared volume
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
b23ca68c62
commit
be27bcfbcd
@ -5,6 +5,9 @@ type: docker
|
|||||||
steps:
|
steps:
|
||||||
- name: build ci
|
- name: build ci
|
||||||
image: rustlang/rust:nightly
|
image: rustlang/rust:nightly
|
||||||
|
volumes:
|
||||||
|
- name: ci
|
||||||
|
path: target/debug
|
||||||
commands:
|
commands:
|
||||||
- set -e
|
- set -e
|
||||||
- cargo build
|
- cargo build
|
||||||
@ -47,7 +50,6 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- "load_secret"
|
- "load_secret"
|
||||||
- "build ci"
|
- "build ci"
|
||||||
@ -60,6 +62,8 @@ steps:
|
|||||||
path: /root/.ssh/
|
path: /root/.ssh/
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
|
- name: ci
|
||||||
|
path: target/debug
|
||||||
commands:
|
commands:
|
||||||
- eval `ssh-agent`
|
- eval `ssh-agent`
|
||||||
- chmod -R 600 ~/.ssh
|
- chmod -R 600 ~/.ssh
|
||||||
@ -80,6 +84,7 @@ steps:
|
|||||||
- main
|
- main
|
||||||
- master
|
- master
|
||||||
depends_on:
|
depends_on:
|
||||||
|
- "load_secret"
|
||||||
- "build ci"
|
- "build ci"
|
||||||
|
|
||||||
- name: deploy release
|
- name: deploy release
|
||||||
@ -127,3 +132,5 @@ volumes:
|
|||||||
temp: {}
|
temp: {}
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
temp: {}
|
temp: {}
|
||||||
|
- name: ci
|
||||||
|
temp: {}
|
Loading…
Reference in New Issue
Block a user