chore: remove triggering update-config bot in CI (#10195)
This commit is contained in:
parent
bc11e20405
commit
ea7b059549
|
|
@ -32,10 +32,6 @@ commands:
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: './new-config'
|
path: './new-config'
|
||||||
destination: 'new-config'
|
destination: 'new-config'
|
||||||
- persist_to_workspace:
|
|
||||||
root: './new-config'
|
|
||||||
paths:
|
|
||||||
- '*'
|
|
||||||
check-changed-files-or-halt:
|
check-changed-files-or-halt:
|
||||||
steps:
|
steps:
|
||||||
- run: ./scripts/check-file-changes.sh
|
- run: ./scripts/check-file-changes.sh
|
||||||
|
|
@ -417,13 +413,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- generate-config:
|
- generate-config:
|
||||||
os: windows
|
os: windows
|
||||||
update-config:
|
|
||||||
executor: go-1_17
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- attach_workspace:
|
|
||||||
at: '/new-config'
|
|
||||||
- run: ./scripts/update_config.sh ${UPDATE_CONFIG_TOKEN}
|
|
||||||
|
|
||||||
commonjobs:
|
commonjobs:
|
||||||
- &test-awaiter
|
- &test-awaiter
|
||||||
|
|
@ -511,14 +500,6 @@ workflows:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- 'update-config':
|
|
||||||
requires:
|
|
||||||
- 'generate-config-win'
|
|
||||||
- 'generate-config'
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- 'share-artifacts':
|
- 'share-artifacts':
|
||||||
requires:
|
requires:
|
||||||
- 'i386-package'
|
- 'i386-package'
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# This script is responsible for triggering the Tiger Bot endpoint that will create the pull request with the newly generated configs.
|
|
||||||
# This script is meant to be only ran in within the Circle CI pipeline.
|
|
||||||
|
|
||||||
token=$1
|
|
||||||
|
|
||||||
config_path="/new-config"
|
|
||||||
|
|
||||||
if [ ! -f "$config_path/telegraf.conf" ]; then
|
|
||||||
echo "$config_path/telegraf.conf does not exist"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
if [ ! -f "$config_path/telegraf_windows.conf" ]; then
|
|
||||||
echo "$config_path/telegraf_windows.conf does not exist"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if cmp -s "$config_path/telegraf.conf" "etc/telegraf.conf" && cmp -s "$config_path/telegraf_windows.conf" "etc/telegraf_windows.conf"; then
|
|
||||||
echo "Both telegraf.conf and telegraf_windows.conf haven't changed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
curl -H "Authorization: Bearer $token" -X POST "https://182c7jdgog.execute-api.us-east-1.amazonaws.com/prod/updateConfig"
|
|
||||||
Loading…
Reference in New Issue