Add Woodpecker configs for master build
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
when:
|
||||
- event: cron
|
||||
- event: push
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
repo: git.pinkbyte.ru/pinkbyte/yggdrasil-ng
|
||||
registry: https://git.pinkbyte.ru
|
||||
username:
|
||||
from_secret: repo_user
|
||||
password:
|
||||
from_secret: repo_password
|
||||
tags: latest
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
FROM rust:1.95.0-trixie AS builder
|
||||
|
||||
RUN apt -y update && apt -y install git
|
||||
RUN git clone https://github.com/Revertron/Yggdrasil-ng.git /app
|
||||
WORKDIR /app
|
||||
RUN cargo build --release --features ckr
|
||||
|
||||
FROM debian:trixie AS result
|
||||
|
||||
COPY --from=builder /app/target/release/yggdrasil /usr/bin
|
||||
RUN mkdir /data && apt -y update && apt -y install iproute2 inetutils-ping && apt -y clean all
|
||||
CMD /usr/bin/yggdrasil -c /data/config.toml
|
||||
Reference in New Issue
Block a user