mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
Added GITHUB_RUN_ID for direct link to running workflow. (#6926)
* Added prominfra docker image path. Signed-off-by: Hrishikesh Barman <plain.hrishikeshbman@gmail.com> * Added GITHUB_RUN_ID usage. Signed-off-by: Hrishikesh Barman <plain.hrishikeshbman@gmail.com>
This commit is contained in:
parent
2cc32c332d
commit
d1c00bb7c2
26
.github/workflows/prombench.yml
vendored
26
.github/workflows/prombench.yml
vendored
|
@ -14,11 +14,11 @@ jobs:
|
||||||
curl -i -X POST
|
curl -i -X POST
|
||||||
-H "Authorization: Bearer $GITHUB_TOKEN"
|
-H "Authorization: Bearer $GITHUB_TOKEN"
|
||||||
-H "Content-Type: application/json"
|
-H "Content-Type: application/json"
|
||||||
--data '{"state":"pending", "context": "prombench-status-update-start", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}'
|
--data '{"state":"pending", "context": "prombench-status-update-start", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions/runs/'$GITHUB_RUN_ID'"}'
|
||||||
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
||||||
- name: Run make deploy to start test
|
- name: Run make deploy to start test
|
||||||
id: make_deploy
|
id: make_deploy
|
||||||
uses: docker://prombench/prombench:2.0.2
|
uses: docker://prominfra/prombench:master
|
||||||
env:
|
env:
|
||||||
AUTH_FILE: ${{ secrets.PROMBENCH_GKE_AUTH }}
|
AUTH_FILE: ${{ secrets.PROMBENCH_GKE_AUTH }}
|
||||||
PROJECT_ID: macro-mile-203600
|
PROJECT_ID: macro-mile-203600
|
||||||
|
@ -43,7 +43,7 @@ jobs:
|
||||||
curl -i -X POST
|
curl -i -X POST
|
||||||
-H "Authorization: Bearer $GITHUB_TOKEN"
|
-H "Authorization: Bearer $GITHUB_TOKEN"
|
||||||
-H "Content-Type: application/json"
|
-H "Content-Type: application/json"
|
||||||
--data '{"state":"failure", "context": "prombench-status-update-start", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}'
|
--data '{"state":"failure", "context": "prombench-status-update-start", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions/runs/'$GITHUB_RUN_ID'"}'
|
||||||
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
||||||
- name: Update status to success
|
- name: Update status to success
|
||||||
if: success()
|
if: success()
|
||||||
|
@ -54,7 +54,7 @@ jobs:
|
||||||
curl -i -X POST
|
curl -i -X POST
|
||||||
-H "Authorization: Bearer $GITHUB_TOKEN"
|
-H "Authorization: Bearer $GITHUB_TOKEN"
|
||||||
-H "Content-Type: application/json"
|
-H "Content-Type: application/json"
|
||||||
--data '{"state":"success", "context": "prombench-status-update-start", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}'
|
--data '{"state":"success", "context": "prombench-status-update-start", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions/runs/'$GITHUB_RUN_ID'"}'
|
||||||
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
||||||
#############################
|
#############################
|
||||||
# Jobs for stopping benchmark
|
# Jobs for stopping benchmark
|
||||||
|
@ -72,11 +72,11 @@ jobs:
|
||||||
curl -i -X POST
|
curl -i -X POST
|
||||||
-H "Authorization: Bearer $GITHUB_TOKEN"
|
-H "Authorization: Bearer $GITHUB_TOKEN"
|
||||||
-H "Content-Type: application/json"
|
-H "Content-Type: application/json"
|
||||||
--data '{"state":"pending", "context": "prombench-status-update-cancel", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}'
|
--data '{"state":"pending", "context": "prombench-status-update-cancel", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions/runs/'$GITHUB_RUN_ID'"}'
|
||||||
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
||||||
- name: Run make clean to stop test
|
- name: Run make clean to stop test
|
||||||
id: make_clean
|
id: make_clean
|
||||||
uses: docker://prombench/prombench:2.0.2
|
uses: docker://prominfra/prombench:master
|
||||||
env:
|
env:
|
||||||
AUTH_FILE: ${{ secrets.PROMBENCH_GKE_AUTH }}
|
AUTH_FILE: ${{ secrets.PROMBENCH_GKE_AUTH }}
|
||||||
PROJECT_ID: macro-mile-203600
|
PROJECT_ID: macro-mile-203600
|
||||||
|
@ -97,7 +97,7 @@ jobs:
|
||||||
curl -i -X POST
|
curl -i -X POST
|
||||||
-H "Authorization: Bearer $GITHUB_TOKEN"
|
-H "Authorization: Bearer $GITHUB_TOKEN"
|
||||||
-H "Content-Type: application/json"
|
-H "Content-Type: application/json"
|
||||||
--data '{"state":"failure", "context": "prombench-status-update-cancel", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}'
|
--data '{"state":"failure", "context": "prombench-status-update-cancel", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions/runs/'$GITHUB_RUN_ID'"}'
|
||||||
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
||||||
- name: Update status to success
|
- name: Update status to success
|
||||||
if: success()
|
if: success()
|
||||||
|
@ -108,7 +108,7 @@ jobs:
|
||||||
curl -i -X POST
|
curl -i -X POST
|
||||||
-H "Authorization: Bearer $GITHUB_TOKEN"
|
-H "Authorization: Bearer $GITHUB_TOKEN"
|
||||||
-H "Content-Type: application/json"
|
-H "Content-Type: application/json"
|
||||||
--data '{"state":"success", "context": "prombench-status-update-cancel", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}'
|
--data '{"state":"success", "context": "prombench-status-update-cancel", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions/runs/'$GITHUB_RUN_ID'"}'
|
||||||
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
||||||
###############################
|
###############################
|
||||||
# Jobs for restarting benchmark
|
# Jobs for restarting benchmark
|
||||||
|
@ -126,11 +126,11 @@ jobs:
|
||||||
curl -i -X POST
|
curl -i -X POST
|
||||||
-H "Authorization: Bearer $GITHUB_TOKEN"
|
-H "Authorization: Bearer $GITHUB_TOKEN"
|
||||||
-H "Content-Type: application/json"
|
-H "Content-Type: application/json"
|
||||||
--data '{"state":"pending", "context": "prombench-status-update-restart", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}'
|
--data '{"state":"pending", "context": "prombench-status-update-restart", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions/runs/'$GITHUB_RUN_ID'"}'
|
||||||
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
||||||
- name: Run make clean then make deploy to restart test
|
- name: Run make clean then make deploy to restart test
|
||||||
id: make_restart
|
id: make_restart
|
||||||
uses: docker://prombench/prombench:2.0.2
|
uses: docker://prominfra/prombench:master
|
||||||
env:
|
env:
|
||||||
AUTH_FILE: ${{ secrets.PROMBENCH_GKE_AUTH }}
|
AUTH_FILE: ${{ secrets.PROMBENCH_GKE_AUTH }}
|
||||||
PROJECT_ID: macro-mile-203600
|
PROJECT_ID: macro-mile-203600
|
||||||
|
@ -157,7 +157,7 @@ jobs:
|
||||||
curl -i -X POST
|
curl -i -X POST
|
||||||
-H "Authorization: Bearer $GITHUB_TOKEN"
|
-H "Authorization: Bearer $GITHUB_TOKEN"
|
||||||
-H "Content-Type: application/json"
|
-H "Content-Type: application/json"
|
||||||
--data '{"state":"failure", "context": "prombench-status-update-restart", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}'
|
--data '{"state":"failure", "context": "prombench-status-update-restart", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions/runs/'$GITHUB_RUN_ID'"}'
|
||||||
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
||||||
- name: Update status to success
|
- name: Update status to success
|
||||||
if: success()
|
if: success()
|
||||||
|
@ -168,5 +168,5 @@ jobs:
|
||||||
curl -i -X POST
|
curl -i -X POST
|
||||||
-H "Authorization: Bearer $GITHUB_TOKEN"
|
-H "Authorization: Bearer $GITHUB_TOKEN"
|
||||||
-H "Content-Type: application/json"
|
-H "Content-Type: application/json"
|
||||||
--data '{"state":"success", "context": "prombench-status-update-restart", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}'
|
--data '{"state":"success", "context": "prombench-status-update-restart", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions/runs/'$GITHUB_RUN_ID'"}'
|
||||||
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"
|
Loading…
Reference in a new issue