ci: Work on publishing a docker container

This commit is contained in:
travisladuke
2024-02-15 14:45:41 -08:00
committed by Travis LaDuke
parent 1c943e117d
commit 906cbb9237
2 changed files with 29 additions and 3 deletions
+21
View File
@@ -0,0 +1,21 @@
kind: pipeline
name: default
steps:
- name: docker publish
image: plugins/docker
settings:
username: laduker
password:
from_secret: dockerhub_token
repo: zerotier/pylon
tags:
- latest
- ${DRONE_TAG##v}
ssh-agent-key:
from_secret: private_key
when:
branch:
- main
event:
- tag
+8 -3
View File
@@ -1,13 +1,18 @@
FROM debian:bookworm-slim as build
COPY . /code
WORKDIR /code
RUN apt-get update -qq && apt-get install -y \
build-essential git make pkg-config cmake libssl-dev
COPY ./ /code
WORKDIR /code
RUN make release
FROM debian:bookworm-slim
COPY --from=build /code/pylon /usr/local/bin
# EXPOSE 443
# EXPOSE 9993/udp
# ENV ZT_PYLON_SECRET_KEY=
# ENV ZT_PYLON_WHITELISTED_PORT=
ENTRYPOINT [ "/usr/local/bin/pylon" ]
CMD ["reflect"]