mirror of https://github.com/Budibase/budibase.git
2 changed files with 15 additions and 4 deletions
@ -1,12 +1,23 @@ |
|||
#!/bin/bash |
|||
|
|||
tag=$1 |
|||
tag=${tag:-latest} |
|||
production=$2 |
|||
|
|||
if [[ ! "$tag" ]]; then |
|||
echo "No tag present. You must pass a tag to this script" |
|||
exit 1 |
|||
fi |
|||
|
|||
echo "Tagging images with tag: $tag" |
|||
|
|||
docker tag app-service budibase/apps:$tag |
|||
docker tag worker-service budibase/worker:$tag |
|||
|
|||
docker push budibase/apps:$tag |
|||
docker push budibase/worker:$tag |
|||
if [[ "$production" ]]; then |
|||
echo "Production Deployment. Tagging latest.." |
|||
docker tag app-service budibase/apps:latest |
|||
docker tag worker-service budibase/worker:latest |
|||
fi |
|||
|
|||
docker push --all-tags budibase/apps |
|||
docker push --all-tags budibase/worker |
|||
|
|||
Loading…
Reference in new issue