Add ci, fix compiler warnings

This commit is contained in:
SeanOMik 2024-01-21 11:06:26 -05:00
parent 874e4d706c
commit 0971efa594
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
3 changed files with 24 additions and 6 deletions

20
.woodpecker/.docker.yml Normal file
View File

@ -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

View File

@ -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

View File

@ -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::*;