Fix issue with source code not ending up in the release.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Dorian 2024-02-23 15:35:10 -05:00
parent e89e1a394e
commit b5a2693119
2 changed files with 7 additions and 10 deletions

View File

@ -43,9 +43,9 @@ steps:
- code.birch-tree.net/dorian/mirror-server:build
depends_on:
- test
when:
ref:
- refs/tags/*
# when:
# ref:
# - refs/tags/*
- name: create-debian-package
image: code.birch-tree.net/dorian/mirror-server:build
@ -57,9 +57,9 @@ steps:
from_secret: gitea-release-password
depends_on:
- test
when:
ref:
- refs/tags/*
# when:
# ref:
# - refs/tags/*
image_pull_secrets:
- docker-config

View File

@ -19,7 +19,7 @@ RUN cargo build \
&& rm src/*.rs
# Bring in the source
COPY ["src", "./src/"]
COPY ["./src/*", "./src/"]
# Build the example API.
RUN cargo build --release
@ -31,8 +31,5 @@ ENV APP_NAME=mirror-server
ENV APP_HOME=/srv/${APP_NAME}
RUN apt update
RUN mkdir -p ${APP_HOME}
WORKDIR ${APP_HOME}
COPY --from=BUILD ${APP_HOME}/target/release/${APP_NAME} /usr/local/bin/
CMD ${APP_NAME}