2021-01-07 12:38:37 +01:00
|
|
|
#!/bin/bash
|
2021-01-29 11:41:08 +01:00
|
|
|
|
|
|
|
tag=$1
|
2021-08-24 18:16:45 +02:00
|
|
|
production=$2
|
|
|
|
|
|
|
|
if [[ ! "$tag" ]]; then
|
|
|
|
echo "No tag present. You must pass a tag to this script"
|
|
|
|
exit 1
|
|
|
|
fi
|
2021-01-29 11:41:08 +01:00
|
|
|
|
2021-08-24 17:58:10 +02:00
|
|
|
echo "Tagging images with tag: $tag"
|
2021-05-20 13:38:12 +02:00
|
|
|
|
2021-06-21 17:44:54 +02:00
|
|
|
docker tag app-service budibase/apps:$tag
|
|
|
|
docker tag worker-service budibase/worker:$tag
|
2021-01-29 11:41:08 +01:00
|
|
|
|
2021-08-24 18:16:45 +02:00
|
|
|
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
|