Fixed build step
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
f43dcecda6
commit
41c62528de
21
.drone.yml
21
.drone.yml
|
@ -26,7 +26,6 @@ steps:
|
||||||
- cp -R /app/dist ./dist
|
- cp -R /app/dist ./dist
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: rust
|
image: rust
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -36,10 +35,10 @@ steps:
|
||||||
- cp -R /app/dist ./dist
|
- cp -R /app/dist ./dist
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
- cp target/release/vade /app/build/vade
|
- cp target/release/vade /app/build/vade
|
||||||
when:
|
- cp target/x86_64-unknown-linux-musl/release/vade /app/build/vade
|
||||||
event:
|
# when:
|
||||||
- promote
|
# event:
|
||||||
|
# - promote
|
||||||
|
|
||||||
- name: stage-deploy
|
- name: stage-deploy
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@ -56,12 +55,12 @@ steps:
|
||||||
context: /app/build
|
context: /app/build
|
||||||
repo: git.5sigma.io/vade/app
|
repo: git.5sigma.io/vade/app
|
||||||
tags: latest
|
tags: latest
|
||||||
when:
|
# when:
|
||||||
event:
|
# event:
|
||||||
- promote
|
# - promote
|
||||||
target:
|
# target:
|
||||||
- staging
|
# - staging
|
||||||
- production
|
# - production
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: temp
|
- name: temp
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
COPY target/x86_64-unknown-linux-musl/release/vade /app/vade
|
COPY vade /app/vade
|
||||||
EXPOSE 8089
|
EXPOSE 8089
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
RUN mkdir data
|
RUN mkdir data
|
||||||
|
|
Loading…
Reference in New Issue