Fixed test pipeline to include ui build
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
9dd66ea4b5
commit
52f3d27814
14
.drone.yml
14
.drone.yml
|
@ -3,6 +3,7 @@ name: main-pipeline
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-ui
|
- name: build-ui
|
||||||
image: node:16.13-slim
|
image: node:16.13-slim
|
||||||
|
@ -15,14 +16,17 @@ steps:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
- cp -R ./dist /app/dist
|
- cp -R ./dist /app/dist
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- promote
|
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: rust
|
image: rust
|
||||||
|
volumes:
|
||||||
|
- name: temp
|
||||||
|
path: /app
|
||||||
commands:
|
commands:
|
||||||
|
- cp -R ./dist /app/dist
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: rust
|
image: rust
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -31,7 +35,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- cp -R /app/dist ./dist
|
- cp -R /app/dist ./dist
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
- cp target/release/vade /app/vade
|
- cp target/release/vade /app/build/vade
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- promote
|
- promote
|
||||||
|
@ -49,7 +53,7 @@ steps:
|
||||||
password:
|
password:
|
||||||
from_secret: CONTAINER_PASSWORD
|
from_secret: CONTAINER_PASSWORD
|
||||||
registry: git.5sigma.io
|
registry: git.5sigma.io
|
||||||
context: /app
|
context: /app/build
|
||||||
repo: git.5sigma.io/vade/app
|
repo: git.5sigma.io/vade/app
|
||||||
tags: latest
|
tags: latest
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in New Issue