budibase/hosting/scripts/linux/release-to-docker-hub.sh

23 lines
571 B
Bash
Raw Normal View History

#!/bin/bash
tag=$1
tag=${tag:-latest}
2021-05-20 13:38:12 +02:00
pushd ../../build
docker-compose build --force app-service
docker-compose build --force worker-service
2021-05-20 13:38:12 +02:00
echo "Tagging images with SHA: $GITHUB_SHA and version: $BUDIBASE_VERSION"
docker tag build_app-service budibase/budibase-apps:$tag
docker tag build_worker-service budibase/budibase-worker:$tag
2021-05-20 13:38:12 +02:00
# Tag with git sha
docker tag build_app-service budibase/budibase-apps:$GITHUB_SHA
docker tag build_worker-service budibase/budibase-worker:$GITHUB_SHA
docker push budibase/budibase-apps
docker push budibase/budibase-worker
popd