yay
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
/ Release (push) Has been cancelled
/ Build - Windows x86 (push) Has been cancelled
/ Build - Windows x86_64 (push) Has been cancelled
/ Build - Android aarch64 (push) Has been cancelled
/ Build - Android armv7 (push) Has been cancelled
/ Build - Freebsd x86 (push) Has been cancelled
/ Build - Freebsd x86_64 (push) Has been cancelled
/ Build - Linux aarch64 (push) Has been cancelled
/ Build - Linux armv7hf (push) Has been cancelled
/ Build - Linux x86 (push) Has been cancelled
/ Build - Linux x86_64 (push) Has been cancelled
/ Build - MacOS aarch64 (push) Has been cancelled
/ Build - MacOS x86_64 (push) Has been cancelled
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
/ Release (push) Has been cancelled
/ Build - Windows x86 (push) Has been cancelled
/ Build - Windows x86_64 (push) Has been cancelled
/ Build - Android aarch64 (push) Has been cancelled
/ Build - Android armv7 (push) Has been cancelled
/ Build - Freebsd x86 (push) Has been cancelled
/ Build - Freebsd x86_64 (push) Has been cancelled
/ Build - Linux aarch64 (push) Has been cancelled
/ Build - Linux armv7hf (push) Has been cancelled
/ Build - Linux x86 (push) Has been cancelled
/ Build - Linux x86_64 (push) Has been cancelled
/ Build - MacOS aarch64 (push) Has been cancelled
/ Build - MacOS x86_64 (push) Has been cancelled
This commit is contained in:
parent
fab129b516
commit
1afda73923
2 changed files with 21 additions and 2 deletions
18
.woodpecker.yaml
Normal file
18
.woodpecker.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
when:
|
||||||
|
branch: ["main"]
|
||||||
|
event: ["push", "manual"]
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
repo: git.iwakura.rip/hex/wstunnel
|
||||||
|
platforms: linux/amd64
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
tags:
|
||||||
|
["${CI_COMMIT_BRANCH}-latest", "${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA}"]
|
||||||
|
username: hex
|
||||||
|
registry:
|
||||||
|
git.iwakura.rip
|
||||||
|
#insecure: true
|
||||||
|
password:
|
||||||
|
from_secret: gitpat
|
|
@ -52,12 +52,13 @@ ARG PROFILE=release
|
||||||
COPY --from=builder_release /build/target/${PROFILE}/wstunnel wstunnel
|
COPY --from=builder_release /build/target/${PROFILE}/wstunnel wstunnel
|
||||||
|
|
||||||
ENV RUST_LOG="INFO"
|
ENV RUST_LOG="INFO"
|
||||||
ENV SERVER_PROTOCOL="wss"
|
ENV SERVER_PROTOCOL="ws"
|
||||||
ENV SERVER_LISTEN="[::]"
|
ENV SERVER_LISTEN="[::]"
|
||||||
ENV SERVER_PORT="8080"
|
ENV SERVER_PORT="8080"
|
||||||
|
ENV EXTRA_ARGS="--restrict-to 192.168.2.1:19110"
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
USER app
|
USER app
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/dumb-init", "-v", "--"]
|
ENTRYPOINT ["/usr/bin/dumb-init", "-v", "--"]
|
||||||
CMD ["/bin/sh", "-c", "exec /home/app/wstunnel server ${SERVER_PROTOCOL}://${SERVER_LISTEN}:${SERVER_PORT}"]
|
CMD ["/bin/sh", "-c", "exec /home/app/wstunnel server ${EXTRA_ARGS} ${SERVER_PROTOCOL}://${SERVER_LISTEN}:${SERVER_PORT}"]
|
||||||
|
|
Loading…
Reference in a new issue