Compare commits

...

13 Commits
main ... drone

Author SHA1 Message Date
Joe Bellus ed8c68817e Added build step for musl
continuous-integration/drone/push Build is passing Details
2022-07-28 21:31:30 -04:00
Joe Bellus 06eef6f368 musl build for docker
continuous-integration/drone/push Build is failing Details
2022-07-28 21:13:33 -04:00
Joe Bellus dbbe6074cb Fixed issue with artifact pathing
continuous-integration/drone/push Build is failing Details
2022-07-28 20:31:18 -04:00
Joe Bellus d0c9c1fa44 added mkdir
continuous-integration/drone/push Build is failing Details
2022-07-28 20:15:02 -04:00
Joe Bellus 41c62528de Fixed build step
continuous-integration/drone/push Build is failing Details
2022-07-28 20:04:15 -04:00
Joe Bellus f43dcecda6 Fixed voluime copy during test
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details
2022-07-28 19:37:09 -04:00
Joe Bellus 52f3d27814 Fixed test pipeline to include ui build
continuous-integration/drone/push Build is passing Details
2022-07-28 19:35:58 -04:00
Joe Bellus 9dd66ea4b5 Changed drone filename
continuous-integration/drone/push Build is failing Details
2022-07-28 19:33:16 -04:00
Joe Bellus 7875f7490a using temp volume for ui artifacts
continuous-integration/drone/push Build encountered an error Details
2022-07-28 19:32:24 -04:00
Joe Bellus eca0823601 Changed volume definition
continuous-integration/drone/push Build encountered an error Details
2022-07-28 19:29:45 -04:00
Joe Bellus a2e3a5d544 Absolute path for dist volume
continuous-integration/drone/push Build encountered an error Details
2022-07-28 19:26:31 -04:00
Joe Bellus 562b9cd503 Changed volume to relative dist folder
continuous-integration/drone/push Build encountered an error Details
2022-07-28 19:24:32 -04:00
Joe Bellus ce2908b575 Added ui build
continuous-integration/drone/push Build encountered an error Details
2022-07-28 19:19:01 -04:00
3 changed files with 38 additions and 73 deletions

View File

@ -3,22 +3,46 @@ 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
- name: test
image: rust
volumes:
- name: temp
path: /app
commands:
- cp -R /app/dist ./dist
- cargo test
- name: build
image: rust
volumes:
- name: temp
path: /app
commands:
- cargo build --release
- cp target/release/vade /app/vade
when:
event:
- promote
- cp -R /app/dist ./dist
- rustup target add x86_64-unknown-linux-musl
- apt update && apt install -y musl-tools musl-dev
- update-ca-certificates
- cargo build --target x86_64-unknown-linux-musl --release
- mkdir /app/build
- cp target/x86_64-unknown-linux-musl/release/vade /app/build/vade
# when:
# event:
# - promote
- name: stage-deploy
image: plugins/docker
privileged: true
@ -31,15 +55,16 @@ steps:
password:
from_secret: CONTAINER_PASSWORD
registry: git.5sigma.io
context: /app
context: /app/build
repo: git.5sigma.io/vade/app
tags: latest
when:
event:
- promote
target:
- staging
- production
# when:
# event:
# - promote
# target:
# - staging
# - production
volumes:
- name: temp
temp: {}

View File

@ -1,5 +1,5 @@
FROM alpine:latest
COPY target/x86_64-unknown-linux-musl/release/vade /app/vade
COPY vade /app/vade
EXPOSE 8089
WORKDIR app
RUN mkdir data

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: {}