ZeroTierOne/pkg/synology/dsm7-docker/build.sh
2023-11-03 18:19:56 -07:00

20 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} \
.
}
"$@"