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 - 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

View File

@ -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