Add ci, fix compiler warnings
This commit is contained in:
parent
874e4d706c
commit
0971efa594
|
@ -0,0 +1,20 @@
|
|||
when:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
event: push
|
||||
|
||||
steps:
|
||||
publish:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
#platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm64/v8,linux/ppc64le,linux/riscv64,linux/s390x
|
||||
platforms: linux/amd64,linux/arm/v6,linux/arm64/v8
|
||||
repo: ${CI_REPO_URL} # url to repository
|
||||
registry: ${CI_FORGE_URL} # url of gitea
|
||||
tags:
|
||||
- ${CI_COMMIT_SHA:0:8} # first 8 characters of var
|
||||
- rolling
|
||||
- rolling@${CI_COMMIT_SHA:0:8}
|
||||
username: ${CI_REPO_OWNER}
|
||||
password:
|
||||
from_secret: registry_token
|
||||
|
|
@ -4,15 +4,13 @@ FROM rust:alpine3.17 as builder
|
|||
RUN apk update
|
||||
RUN apk add build-base ca-certificates libressl-dev
|
||||
|
||||
# create root application folder
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./ /app/src
|
||||
|
||||
# Install rust toolchains
|
||||
RUN rustup toolchain install stable
|
||||
RUN rustup default stable
|
||||
|
||||
# create root application folder
|
||||
WORKDIR /app
|
||||
COPY ./ /app/src
|
||||
WORKDIR /app/src
|
||||
|
||||
# Build dependencies only. Separate these for caches
|
||||
|
|
|
@ -23,7 +23,7 @@ use figment::{
|
|||
providers::{Env, Format, Toml},
|
||||
Figment,
|
||||
};
|
||||
use tokio::{sync::{Mutex, mpsc::{Receiver, self}}, select, signal};
|
||||
use tokio::{sync::Mutex, signal};
|
||||
|
||||
mod dto;
|
||||
use dto::*;
|
||||
|
|
Loading…
Reference in New Issue