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