mirror of
https://github.com/luzifer-docker/grafana.git
synced 2024-11-09 23:50:01 +00:00
Do not do an extra curl, just patch
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
19e298fc6c
commit
ef73cd4d88
1 changed files with 1 additions and 4 deletions
|
@ -16,9 +16,6 @@ git reset --hard origin/master
|
||||||
echo "Fetching latest version..."
|
echo "Fetching latest version..."
|
||||||
LATEST=$(curl -sSLf 'https://latest.luzifer.io/catalog-api/grafana/latest.txt?p=version')
|
LATEST=$(curl -sSLf 'https://latest.luzifer.io/catalog-api/grafana/latest.txt?p=version')
|
||||||
|
|
||||||
echo "Testing presence of build artifact for ${LATEST}..."
|
|
||||||
curl -sSILf https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_${LATEST}_amd64.deb
|
|
||||||
|
|
||||||
echo "Found version ${LATEST}, patching..."
|
echo "Found version ${LATEST}, patching..."
|
||||||
sed -i "s/^ENV GRAFANA_VERSION.*$/ENV GRAFANA_VERSION ${LATEST}/" Dockerfile
|
sed -i "s/^ENV GRAFANA_VERSION.*$/ENV GRAFANA_VERSION ${LATEST}/" Dockerfile
|
||||||
|
|
||||||
|
@ -31,7 +28,7 @@ docker build .
|
||||||
echo "Updating repository..."
|
echo "Updating repository..."
|
||||||
git add Dockerfile
|
git add Dockerfile
|
||||||
git -c user.name='Travis Automated Update' -c user.email='travis@luzifer.io' \
|
git -c user.name='Travis Automated Update' -c user.email='travis@luzifer.io' \
|
||||||
commit -m "Grafana ${LATEST}"
|
commit -m "Grafana ${LATEST}"
|
||||||
git tag ${LATEST}
|
git tag ${LATEST}
|
||||||
|
|
||||||
git push -q https://${GH_USER}:${GH_TOKEN}@github.com/luzifer-docker/grafana.git master --tags
|
git push -q https://${GH_USER}:${GH_TOKEN}@github.com/luzifer-docker/grafana.git master --tags
|
||||||
|
|
Loading…
Reference in a new issue