From b5a2693119cb4043fabb46bfa58b261d6ead702f Mon Sep 17 00:00:00 2001 From: Dorian Pula Date: Fri, 23 Feb 2024 15:35:10 -0500 Subject: [PATCH] Fix issue with source code not ending up in the release. --- .drone.yml | 12 ++++++------ Dockerfile | 5 +---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2c7f7d6..8a7529b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 8911692..3b9408f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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} \ No newline at end of file