Improve the documentation and bug fixes #3
12
.drone.yml
12
.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
|
||||
|
|
|
@ -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}
|
Loading…
Reference in New Issue