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