Created
May 19, 2023 14:47
-
-
Save WesleySkeen/c197ead0e0cc3887d1f56945e83abaea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: Bash@3 | |
inputs: | |
targetType: 'inline' | |
script: | | |
EPOCH=$(($(date +%s%N)/1000000)) | |
curl -X POST $(grafana_api_endpoint)/annotations -H 'Content-Type: application/json' -H 'Authorization:Bearer $(grafana_annotations_key)' -d '{"created": '"$EPOCH"', "updated": '"$EPOCH"', "time": '"$EPOCH"', "timeEnd": '"$EPOCH"',"text": "Deployment", "tags": ["kind:deployment","project:'"$(Build.Repository.Name)"'"]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment