mirror of
https://github.com/bbilly1/tilefy.git
synced 2024-08-02 16:03:34 +00:00
deploy unstable
This commit is contained in:
parent
2efd97d5d4
commit
2eb38d21ce
22
deploy.sh
22
deploy.sh
@ -70,7 +70,8 @@ function docker_publish {
|
||||
sudo docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
-t bbilly1/tilefy \
|
||||
-t bbilly1/tilefy:"$VERSION" --push .
|
||||
-t bbilly1/tilefy:"$VERSION" \
|
||||
-t bbilly1/tilefy:unstable --push .
|
||||
|
||||
# create release tag
|
||||
echo "commits since last version:"
|
||||
@ -80,6 +81,21 @@ function docker_publish {
|
||||
|
||||
}
|
||||
|
||||
# publish unstable tag to docker
|
||||
function sync_unstable {
|
||||
|
||||
if [[ $(systemctl is-active docker) != 'active' ]]; then
|
||||
echo "starting docker"
|
||||
sudo systemctl start docker
|
||||
fi
|
||||
|
||||
# start amd64 build
|
||||
sudo docker buildx build \
|
||||
--platform linux/amd64 \
|
||||
-t bbilly1/tilefy:unstable --push .
|
||||
|
||||
}
|
||||
|
||||
|
||||
if [[ $1 == "test" ]]; then
|
||||
rebuild_test
|
||||
@ -89,8 +105,10 @@ elif [[ $1 == "validate" ]]; then
|
||||
validate "$2"
|
||||
elif [[ $1 == "docker" ]]; then
|
||||
docker_publish
|
||||
elif [[ $1 == "unstable" ]]; then
|
||||
sync_unstable
|
||||
else
|
||||
echo "valid options are: test | docker "
|
||||
echo "valid options are: test | docker | unstable"
|
||||
fi
|
||||
|
||||
##
|
||||
|
Loading…
Reference in New Issue
Block a user