Fix issue with source code not ending up in the release.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
e89e1a394e
commit
b5a2693119
12
.drone.yml
12
.drone.yml
|
@ -43,9 +43,9 @@ steps:
|
||||||
- code.birch-tree.net/dorian/mirror-server:build
|
- code.birch-tree.net/dorian/mirror-server:build
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
when:
|
# when:
|
||||||
ref:
|
# ref:
|
||||||
- refs/tags/*
|
# - refs/tags/*
|
||||||
|
|
||||||
- name: create-debian-package
|
- name: create-debian-package
|
||||||
image: code.birch-tree.net/dorian/mirror-server:build
|
image: code.birch-tree.net/dorian/mirror-server:build
|
||||||
|
@ -57,9 +57,9 @@ steps:
|
||||||
from_secret: gitea-release-password
|
from_secret: gitea-release-password
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
when:
|
# when:
|
||||||
ref:
|
# ref:
|
||||||
- refs/tags/*
|
# - refs/tags/*
|
||||||
|
|
||||||
image_pull_secrets:
|
image_pull_secrets:
|
||||||
- docker-config
|
- docker-config
|
||||||
|
|
|
@ -19,7 +19,7 @@ RUN cargo build \
|
||||||
&& rm src/*.rs
|
&& rm src/*.rs
|
||||||
|
|
||||||
# Bring in the source
|
# Bring in the source
|
||||||
COPY ["src", "./src/"]
|
COPY ["./src/*", "./src/"]
|
||||||
|
|
||||||
# Build the example API.
|
# Build the example API.
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
@ -31,8 +31,5 @@ ENV APP_NAME=mirror-server
|
||||||
ENV APP_HOME=/srv/${APP_NAME}
|
ENV APP_HOME=/srv/${APP_NAME}
|
||||||
RUN apt update
|
RUN apt update
|
||||||
|
|
||||||
RUN mkdir -p ${APP_HOME}
|
|
||||||
WORKDIR ${APP_HOME}
|
|
||||||
|
|
||||||
COPY --from=BUILD ${APP_HOME}/target/release/${APP_NAME} /usr/local/bin/
|
COPY --from=BUILD ${APP_HOME}/target/release/${APP_NAME} /usr/local/bin/
|
||||||
CMD ${APP_NAME}
|
CMD ${APP_NAME}
|
Loading…
Reference in New Issue