using temp volume for ui artifacts
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Joe Bellus 2022-07-28 19:32:24 -04:00
parent eca0823601
commit 7875f7490a
1 changed files with 4 additions and 8 deletions

View File

@ -7,14 +7,14 @@ steps:
- name: build-ui
image: node:16.13-slim
volumes:
- name: dist
path: /dist
- name: temp
path: /app
commands:
- apt-get update
- apt-get -y install libssl-dev
- npm install
- npm run build
- cp -R ./dist/* /dist
- cp -R ./dist /app/dist
when:
event:
- promote
@ -28,10 +28,8 @@ steps:
volumes:
- name: temp
path: /app
- name: dist
path: /dist
commands:
- cp -R /dist ./dist
- cp -R /app/dist ./dist
- cargo build --release
- cp target/release/vade /app/vade
when:
@ -64,5 +62,3 @@ steps:
volumes:
- name: temp
temp: {}
- name: dist
dist: {}