Fix bash scrape script
This commit is contained in:
parent
5531c323f4
commit
d60e818efa
@ -9,7 +9,7 @@ REPOS = {
|
||||
}
|
||||
|
||||
TMP_DIR = ".tmp-repos"
|
||||
OUTPUT_FILE = "observability-stack/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml"
|
||||
OUTPUT_FILE = ".tmp-repos/observability-stack/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml"
|
||||
|
||||
os.makedirs(TMP_DIR, exist_ok=True)
|
||||
|
||||
|
||||
@ -13,10 +13,6 @@ done
|
||||
echo "⚙️ Generating additional-scrape-configs.yaml..."
|
||||
python3 automation/generate-scrape-config.py
|
||||
|
||||
echo "📦 Copying into observability-stack repo..."
|
||||
cp observability-stack/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml \
|
||||
.tmp-repos/observability-stack/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml
|
||||
|
||||
cd .tmp-repos/observability-stack
|
||||
git config user.name "auto-sync"
|
||||
git config user.email "sync@dvirlabs.com"
|
||||
@ -28,3 +24,5 @@ else
|
||||
git commit -m "auto: update Prometheus scrape config"
|
||||
git push origin master
|
||||
fi
|
||||
|
||||
cat .tmp-repos/observability-stack/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user