Added ui build
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Joe Bellus 2022-07-28 19:19:01 -04:00
parent 87088a9393
commit ce2908b575
2 changed files with 15 additions and 60 deletions

View File

@ -4,6 +4,17 @@ platform:
os: linux os: linux
arch: amd64 arch: amd64
steps: steps:
- name: build-ui
image: node:16.13-slim
volumes:
- name: dist
path: dist/
commands:
- apt-get update
- apt-get -y install libssl-dev
- npm install
- npm run build
- name: test - name: test
image: rust image: rust
commands: commands:
@ -13,6 +24,8 @@ steps:
volumes: volumes:
- name: temp - name: temp
path: /app path: /app
- name: dist
path: dist/
commands: commands:
- cargo build --release - cargo build --release
- cp target/release/vade /app/vade - cp target/release/vade /app/vade
@ -43,3 +56,5 @@ steps:
volumes: volumes:
- name: temp - name: temp
temp: {} temp: {}
- name: dist
temp: {}

View File

@ -1,60 +0,0 @@
kind: pipeline
name: main-pipeline
platform:
os: linux
arch: amd64
steps:
- name: build-ui
image: node:16.13-slim
volumes:
- name: dist
path: dist/
commands:
- apt-get update
- apt-get -y install libssl-dev
- npm install
- npm run build
- name: test
image: rust
commands:
- cargo test
- name: build
image: rust
volumes:
- name: temp
path: /app
- name: dist
path: dist/
commands:
- cargo build --release
- cp target/release/vade /app/vade
when:
event:
- promote
- name: stage-deploy
image: plugins/docker
privileged: true
volumes:
- name: temp
path: /app
settings:
username:
from_secret: CONTAINER_USER
password:
from_secret: CONTAINER_PASSWORD
registry: git.5sigma.io
context: /app
repo: git.5sigma.io/vade/app
tags: latest
when:
event:
- promote
target:
- staging
- production
volumes:
- name: temp
temp: {}
- name: dist
temp: {}