1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-08-08 04:42:07 +03:00

Fix metrics push.

This commit is contained in:
Will Rouesnel
2018-11-11 21:16:46 +11:00
parent 5bd5c591be
commit fd4691cbc0
2 changed files with 2 additions and 6 deletions

View File

@@ -16,17 +16,13 @@ mkdir -p "$METRICS_DIR/"
# Remove old files so we spot deletions
rm -f "$METRICS_DIR/.*.unique"
ls -la
# Copy new files
cp -f -t "$METRICS_DIR/" ./.metrics.*.prom.unique || exit 1
# Enter the assets dir and push.
cd "$ASSETS_DIR" || exit 1
ls -laR
git add "$METRICS_DIR" || exit 1
git add "metriclists" || exit 1
git commit -m "Added unique metrics for build from $version" || exit 1
git push origin "$GIT_ASSETS_BRANCH" || exit 1