-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Work on publishing a docker container
- Loading branch information
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |