mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 14:02:22 +08:00

* add xvfb to image * comment out toolkit inclusion * add latest tag * update packages for cypress * cleanup script
25 lines
720 B
Bash
Executable File
25 lines
720 B
Bash
Executable File
#!/bin/bash
|
|
set -eo pipefail
|
|
|
|
source ./common.sh
|
|
|
|
#
|
|
# No longer required, but useful to keep just in case we want to deploy
|
|
# changes in toolkit directly to the docker image
|
|
#
|
|
if [ -n "$INCLUDE_TOOLKIT" ]; then
|
|
/bin/rm -rfv install/grafana-toolkit
|
|
mkdir -pv install/grafana-toolkit
|
|
cp -rv ../../bin install/grafana-toolkit
|
|
cp -rv ../../src install/grafana-toolkit
|
|
cp -v ../../package.json install/grafana-toolkit
|
|
cp -v ../../tsconfig.json install/grafana-toolkit
|
|
fi
|
|
|
|
docker build -t ${DOCKER_IMAGE_NAME} .
|
|
docker push $DOCKER_IMAGE_NAME
|
|
docker tag ${DOCKER_IMAGE_NAME} ${DOCKER_IMAGE_BASE_NAME}:latest
|
|
docker push ${DOCKER_IMAGE_BASE_NAME}:latest
|
|
|
|
[ -n "$INCLUDE_TOOLKIT" ] && /bin/rm -rfv install/grafana-toolkit
|