mirror of
https://github.com/dangeroustech/ZeroTierBridge.git
synced 2025-12-06 00:56:58 +00:00
feat: multi-platform builds
This commit is contained in:
12
.github/workflows/docker-build.yml
vendored
12
.github/workflows/docker-build.yml
vendored
@@ -7,8 +7,14 @@ on:
|
|||||||
- "main"
|
- "main"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
DockerBuildAndRelease:
|
Docker_Release:
|
||||||
|
name: "Docker Build And Release"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
|
matrix:
|
||||||
|
arch: ["amd64", "arm64"]
|
||||||
|
version: ["1.12.2"]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -32,7 +38,11 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
build-args: |
|
||||||
|
ARCH=${{ matrix.arch }}
|
||||||
|
VERSION=${{ matrix.version }}
|
||||||
push: true
|
push: true
|
||||||
|
platforms: linux/${{ matrix.arch }}
|
||||||
tags: registry.dangerous.tech/dangeroustech/zerotierbridge:latest
|
tags: registry.dangerous.tech/dangeroustech/zerotierbridge:latest
|
||||||
|
|
||||||
- name: Generate SBOM
|
- name: Generate SBOM
|
||||||
|
|||||||
@@ -42,14 +42,10 @@ Disable bridging by passing `ZT_BRIDGE=false`. This can be done after the initia
|
|||||||
|
|
||||||
If you would like the container to retain the same ZeroTier client ID on reboot, attach a volume as per the below.
|
If you would like the container to retain the same ZeroTier client ID on reboot, attach a volume as per the below.
|
||||||
|
|
||||||
`docker run --privileged -e ZT_NETWORKS=NETWORK_ID_HERE ZT_BRIDGE=true --volume zt1:/var/lib/zerotier-one/ zerotierbridge:latest`
|
`docker run --privileged -e ZT_NETWORKS=NETWORK_ID_HERE ZT_BRIDGE=true --volume zt_config:/var/lib/zerotier-one/ zerotierbridge:latest`
|
||||||
|
|
||||||
#### Caveat: Architecture
|
#### Caveat: Architecture
|
||||||
|
|
||||||
If you need to run this on a device with different architecture (a raspberry pi, for instance), then just edit line 3 of the Dockerfile.
|
If you need to run this on a device with different architecture (a raspberry pi, for instance), then just edit line 3 of the Dockerfile.
|
||||||
|
|
||||||
If you were using a Raspberry Pi 4, you would change this to `ARCH=arm64` and the container will pull the correct ZeroTier installer.
|
If you were using a Raspberry Pi 4, you would change this to `ARCH=arm64` and the container will pull the correct ZeroTier installer.
|
||||||
|
|
||||||
## TODO
|
|
||||||
|
|
||||||
- Add kubernetes deployment YAML
|
|
||||||
|
|||||||
Reference in New Issue
Block a user