mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-24 07:57:24 +02:00
19 lines
468 B
Bash
Executable file
19 lines
468 B
Bash
Executable file
#!/bin/bash
|
|
|
|
ZTO_VER=$(git describe --tags $(git rev-list --tags --max-count=1))
|
|
ZTO_COMMIT=$(git rev-parse HEAD)
|
|
|
|
build() {
|
|
sudo docker login --username=${DOCKERHUB_USERNAME}
|
|
|
|
sudo docker buildx build \
|
|
--push \
|
|
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
|
--tag zerotier/zerotier-synology:${ZTO_VER} \
|
|
--tag zerotier/zerotier-synology:latest \
|
|
--build-arg ZTO_COMMIT=${ZTO_COMMIT} \
|
|
--build-arg ZTO_VER=${ZTO_VER} \
|
|
.
|
|
}
|
|
|
|
"$@"
|