23 lines
571 B
Bash
Executable File
23 lines
571 B
Bash
Executable File
#!/bin/bash
|
|
|
|
tag=$1
|
|
tag=${tag:-latest}
|
|
|
|
|
|
pushd ../../build
|
|
docker-compose build --force app-service
|
|
docker-compose build --force worker-service
|
|
|
|
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
|
|
|
|
# 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
|