blob: d235dbf0582cbf28eac6123e7c3df3dfb155757c [file] [log] [blame]
#!/bin/bash
set -euxo pipefail
GIT_REV=$(git rev-parse --short HEAD)
mvn -Dproject.version=${GIT_REV} clean package
rm -rf target/dependency && mkdir -p target/dependency && (
cd target/dependency
jar -xf ../dashboard-${GIT_REV}.jar
)
docker build -f Dockerfile -t gcr.io/bazel-public/dashboard/server:$GIT_REV target