Fixed test pipeline to include ui build
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Joe Bellus 2022-07-28 19:35:58 -04:00
parent 9dd66ea4b5
commit 52f3d27814
1 changed files with 10 additions and 6 deletions

View File

@ -3,6 +3,7 @@ name: main-pipeline
platform:
os: linux
arch: amd64
steps:
- name: build-ui
image: node:16.13-slim
@ -15,14 +16,17 @@ steps:
- npm install
- npm run build
- cp -R ./dist /app/dist
when:
event:
- promote
- name: test
image: rust
volumes:
- name: temp
path: /app
commands:
- cp -R ./dist /app/dist
- cargo test
- name: build
image: rust
volumes:
@ -31,7 +35,7 @@ steps:
commands:
- cp -R /app/dist ./dist
- cargo build --release
- cp target/release/vade /app/vade
- cp target/release/vade /app/build/vade
when:
event:
- promote
@ -49,7 +53,7 @@ steps:
password:
from_secret: CONTAINER_PASSWORD
registry: git.5sigma.io
context: /app
context: /app/build
repo: git.5sigma.io/vade/app
tags: latest
when: