mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
18 lines
462 B
Bash
Executable File
18 lines
462 B
Bash
Executable File
#!/bin/bash
|
|
|
|
docker info && docker version
|
|
mkdir -p ~/docker
|
|
|
|
echo "Circle branch: ${CIRCLE_BRANCH}"
|
|
echo "Circle tag: ${CIRCLE_TAG}"
|
|
|
|
# try to load docker container from cache
|
|
if [[ -e ~/docker/centos.tar ]]; then
|
|
docker load -i ~/docker/centos.tar;
|
|
else
|
|
docker build --rm=false --tag "grafana/buildcontainer" ./scripts/build/
|
|
|
|
# save docker container so we dont have to recreate it next run
|
|
docker save grafana/buildcontainer > ~/docker/centos.tar;
|
|
fi
|