mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-09 14:32:52 +00:00
21 lines
539 B
Bash
Executable File
21 lines
539 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ZTO_VER=$(jq -r '.version' ../config.json)
|
|
|
|
build()
|
|
{
|
|
sudo docker build --load --rm -t zerotier-synology .
|
|
LATEST_DOCKER_IMAGE_HASH=$(sudo docker images -q zerotier-synology)
|
|
sudo docker tag ${LATEST_DOCKER_IMAGE_HASH} zerotier/zerotier-synology:${ZTO_VER}
|
|
sudo docker tag ${LATEST_DOCKER_IMAGE_HASH} zerotier/zerotier-synology:latest
|
|
}
|
|
|
|
push()
|
|
{
|
|
sudo docker login --username=${DOCKERHUB_USERNAME}
|
|
sudo docker push zerotier/zerotier-synology:${ZTO_VER}
|
|
sudo docker push zerotier/zerotier-synology:latest
|
|
}
|
|
|
|
"$@"
|