Skip to content

Commit

Permalink
Try publishing ci status update back to GH
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann authored Dec 15, 2023
1 parent c90f416 commit f12f7ef
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,31 @@ deploy-dev:
script:
- ssh mytoken-dev.vm.fedcloud.eu

.report-status:
variables:
STATUS_PROJECT: oidc-mytoken/server
STATUS_NAME: Codebase CI

script:
# For complete details on the GitHub API please see:
# https://developer.github.com/v3/repos/statuses
- curl -X POST -H @${GH_CURL_HEADERS} https://api.github.com/repos/${STATUS_PROJECT}/statuses/${CI_COMMIT_SHA}?state=${CI_JOB_NAME}\&context=${STATUS_NAME}\&target_url=${CI_PIPELINE_URL}

pending:
stage: .pre
extends:
- .report-status


success:
stage: .post
extends:
- .report-status


failed:
stage: .post
extends:
- .report-status
rules:
- when: on_failure

0 comments on commit f12f7ef

Please sign in to comment.