ci-build: Improve build-deploy script (#19653)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen 2019-10-07 14:17:17 +02:00 committed by GitHub
parent cf7ace6aad
commit 92765a6c6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -18,3 +18,6 @@ This is a container for cross-platform builds of Grafana. You can run it locally
* `make attach`
- Opens bash within the running container
## Build/Publish Docker Image
In order to build and publish the Grafana build Docker image, execute the following:
`./build-deploy.sh`.

View File

@ -1,7 +1,11 @@
#!/bin/bash
set -eo pipefail
_version="1.2.9"
_tag="grafana/build-container:${_version}"
_dpath=$(dirname "${BASH_SOURCE[0]}")
cd "$_dpath"
docker build -t $_tag .
docker push $_tag