build: docker build for ge.

(cherry picked from commit 6c267cb592)
This commit is contained in:
Leonard Gram
2018-11-21 09:28:15 +01:00
parent 18b5f630f7
commit 8190d10827
2 changed files with 10 additions and 1 deletions
+1
View File
@@ -510,6 +510,7 @@ workflows:
- grafana-docker-release:
requires:
- build-all
- build-all-enterprise
- test-backend
- test-frontend
- codespell
+9 -1
View File
@@ -1,9 +1,17 @@
#!/bin/sh
set -e
_grafana_tag=$1
_raw_grafana_tag=$1
_docker_repo=${2:-grafana/grafana-enterprise}
if echo "$_raw_grafana_tag" | grep -q "^v"; then
_grafana_tag=$(echo "${_raw_grafana_tag}" | cut -d "v" -f 2)
else
_grafana_tag="${_raw_grafana_tag}"
fi
echo "Building and deploying ${_docker_repo}:${_grafana_tag}"
docker build \
--tag "${_docker_repo}:${_grafana_tag}"\
--no-cache=true \