Compare commits

...

18 Commits

Author SHA1 Message Date
e7d4a18d3e
target path
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-28 19:29:18 +03:00
891a4bced1
rm chown and volume
Some checks failed
continuous-integration/drone/push Build is failing
2023-03-28 19:19:27 +03:00
0e45db7f60
base: rustlang/rust:nightly-alpine
Some checks failed
continuous-integration/drone/push Build is failing
2023-03-28 19:12:23 +03:00
5e62c8982c
musl-dev
Some checks failed
continuous-integration/drone/push Build is failing
2023-03-28 17:28:39 +03:00
1a5548b00e
add workdir
Some checks failed
continuous-integration/drone/push Build is failing
2023-03-28 17:26:00 +03:00
9483ad3564
remove chown
Some checks failed
continuous-integration/drone/push Build is failing
2023-03-28 17:22:02 +03:00
50cfbb6642
fix dockerfile
Some checks failed
continuous-integration/drone/push Build is failing
2023-03-28 17:19:56 +03:00
438d254c11
use https for modules
Some checks failed
continuous-integration/drone/push Build is failing
2023-03-28 17:18:55 +03:00
bfaeba816e
fix .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
2023-03-28 17:12:50 +03:00
f4af0d5e77
Merge branch 'rocket' of ssh://gitea.b4tman.ru/b4tman/qchgk_web_docker into rocket
Some checks failed
continuous-integration/drone/push Build is failing
# Conflicts:
#	Dockerfile
2023-03-28 17:04:43 +03:00
7bd1c14a27
add .drone.yml 2023-03-28 17:02:37 +03:00
8ecb2e073e
builder base image = rust:1-alpine 2023-03-28 17:01:05 +03:00
83f2785481
upd app 2023-03-28 16:53:21 +03:00
6553dbf3d1
upd 2021-02-06 17:39:02 +03:00
6ede87f0fd
upd deps 2021-02-06 00:47:49 +03:00
926e700828
upd ledb to 0.4 2020-08-18 21:55:36 +03:00
5b436e226a
deps update 2020-08-12 09:17:19 +03:00
66cd8339c3
src: redesign with shadows 2019-08-22 15:59:44 +03:00
4 changed files with 31 additions and 11 deletions

19
.drone.yml Normal file
View File

@ -0,0 +1,19 @@
kind: pipeline
name: default
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: docker
image: plugins/docker
settings:
registry: gitea.b4tman.ru
username: b4tman
repo: b4tman/qchgk
tags: latest
context: src
dockerfile: Dockerfile
dry_run: true

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "src"]
path = src
url = ssh://git@gitea.b4tman.ru:4222/b4tman/qchgk_web.git
url = https://gitea.b4tman.ru/b4tman/qchgk_web.git

View File

@ -1,29 +1,30 @@
FROM ekidd/rust-musl-builder:nightly-2019-07-08 as builder
FROM rustlang/rust:nightly-alpine as builder
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL sparse
RUN apk add --no-cache musl-dev
WORKDIR /home/rust/src
COPY Cargo.toml /home/rust/src/
COPY Cargo.lock /home/rust/src/
RUN mkdir /home/rust/src/src && \
echo 'fn main() {}' > /home/rust/src/src/main.rs
RUN sudo chown -R rust:rust .
RUN cargo fetch
RUN cargo build --release
RUN rm -f /home/rust/src/src/main.rs
COPY src /home/rust/src/src
RUN sudo chown -R rust:rust . && \
touch /home/rust/src/src/main.rs
RUN touch /home/rust/src/src/main.rs
RUN cargo build --release
RUN cargo build -v --release
FROM scratch
COPY static /static
COPY templates /templates
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/qchgk_web /
VOLUME /db
COPY --from=builder /home/rust/src/target/release/qchgk_web /
EXPOSE 8088/tcp

2
src

@ -1 +1 @@
Subproject commit 665bbaadfb80c2b0fa7679ffea426107873e5894
Subproject commit b281f85a70a9a741d1a0851deefcb80e6aa22061