Fixed build step
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Joe Bellus 2022-07-28 20:04:15 -04:00
parent f43dcecda6
commit 41c62528de
2 changed files with 11 additions and 12 deletions

View File

@ -26,7 +26,6 @@ steps:
- cp -R /app/dist ./dist
- cargo test
- name: build
image: rust
volumes:
@ -36,10 +35,10 @@ steps:
- cp -R /app/dist ./dist
- cargo build --release
- cp target/release/vade /app/build/vade
when:
event:
- promote
- cp target/x86_64-unknown-linux-musl/release/vade /app/build/vade
# when:
# event:
# - promote
- name: stage-deploy
image: plugins/docker
@ -56,12 +55,12 @@ steps:
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

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