Changed drone filename
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
7875f7490a
commit
9dd66ea4b5
16
.drone.yml
16
.drone.yml
|
@ -7,13 +7,17 @@ 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 /app/dist
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- promote
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: rust
|
image: rust
|
||||||
|
@ -24,14 +28,15 @@ steps:
|
||||||
volumes:
|
volumes:
|
||||||
- name: temp
|
- name: temp
|
||||||
path: /app
|
path: /app
|
||||||
- name: dist
|
|
||||||
path: dist/
|
|
||||||
commands:
|
commands:
|
||||||
|
- 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:
|
||||||
event:
|
event:
|
||||||
- promote
|
- promote
|
||||||
|
|
||||||
|
|
||||||
- name: stage-deploy
|
- name: stage-deploy
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
privileged: true
|
privileged: true
|
||||||
|
@ -53,8 +58,7 @@ steps:
|
||||||
target:
|
target:
|
||||||
- staging
|
- staging
|
||||||
- production
|
- production
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: temp
|
- name: temp
|
||||||
temp: {}
|
temp: {}
|
||||||
- name: dist
|
|
||||||
temp: {}
|
|
||||||
|
|
64
drone.yml
64
drone.yml
|
@ -1,64 +0,0 @@
|
||||||
kind: pipeline
|
|
||||||
name: main-pipeline
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
steps:
|
|
||||||
- name: build-ui
|
|
||||||
image: node:16.13-slim
|
|
||||||
volumes:
|
|
||||||
- name: temp
|
|
||||||
path: /app
|
|
||||||
commands:
|
|
||||||
- apt-get update
|
|
||||||
- apt-get -y install libssl-dev
|
|
||||||
- npm install
|
|
||||||
- npm run build
|
|
||||||
- cp -R ./dist /app/dist
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- promote
|
|
||||||
|
|
||||||
- name: test
|
|
||||||
image: rust
|
|
||||||
commands:
|
|
||||||
- cargo test
|
|
||||||
- name: build
|
|
||||||
image: rust
|
|
||||||
volumes:
|
|
||||||
- name: temp
|
|
||||||
path: /app
|
|
||||||
commands:
|
|
||||||
- cp -R /app/dist ./dist
|
|
||||||
- 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: {}
|
|
Loading…
Reference in New Issue