mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 15:03:09 -06:00
12 lines
579 B
Bash
12 lines
579 B
Bash
set -xe
|
|
if [ -z "$(git status --porcelain)" ]; then
|
|
CGO_ENABLED=0 go build .
|
|
TAG=$(git rev-parse --short HEAD)
|
|
docker build -f Dockerfile.dev -t gcr.io/globekeeper-development/dendrite-monolith:$TAG -t gcr.io/globekeeper-development/dendrite-monolith -t gcr.io/globekeeper-production/dendrite-monolith:$TAG .
|
|
docker push gcr.io/globekeeper-development/dendrite-monolith:$TAG
|
|
docker push gcr.io/globekeeper-production/dendrite-monolith:$TAG
|
|
docker push gcr.io/globekeeper-development/dendrite-monolith
|
|
else
|
|
echo "Please commit changes"
|
|
exit 0
|
|
fi |