mirror of
https://github.com/dangeroustech/ZeroTierBridge.git
synced 2025-12-06 00:56:58 +00:00
ci: simplify multi-arch build, add cache & concurrency; fix release token
- Add workflow-level concurrency to avoid overlapping releases - Enable BuildKit cache (GHA) for faster Docker builds - Simplify to a single multi-arch build (linux/amd64, linux/arm64) - Remove digest export/upload and manifest merge steps - Push manifest directly from buildx with tag `latest` - Fix GitHub Release token casing to use `secrets.GITHUB_TOKEN` - Update Dockerfile to use TARGETARCH for correct package selection - Pass VERSION consistently; write version to image No functional change to runtime behavior expected; improves speed, reliability, and maintainability of the release pipeline.
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
FROM debian:12.6 as stage
|
||||
ARG PACKAGE_BASEURL=https://download.zerotier.com/debian/bookworm/pool/main/z/zerotier-one
|
||||
ARG ARCH=amd64
|
||||
ARG TARGETARCH
|
||||
ARG VERSION=1.12.2
|
||||
RUN apt-get update -qq && apt-get install -qq --no-install-recommends -y \
|
||||
ca-certificates=20230311+deb12u1 \
|
||||
curl=7.88.1-10+deb12u14
|
||||
RUN curl -sSL -o zerotier-one.deb "${PACKAGE_BASEURL}/zerotier-one_${VERSION}_${ARCH}.deb"
|
||||
RUN ARCH_MAPPING=$([ "$TARGETARCH" = "amd64" ] && echo amd64 || ([ "$TARGETARCH" = "arm64" ] && echo arm64 || echo "$TARGETARCH")) \
|
||||
&& curl -sSL -o zerotier-one.deb "${PACKAGE_BASEURL}/zerotier-one_${VERSION}_${ARCH_MAPPING}.deb"
|
||||
|
||||
FROM debian:12.6
|
||||
ARG VERSION
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
COPY --from=stage zerotier-one.deb .
|
||||
|
||||
Reference in New Issue
Block a user