Skip to content

Commit

Permalink
remove status reporting from .gitlab-ci.yml since it is included
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann authored Jan 5, 2024
1 parent 1894ebb commit e541517
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,38 +96,3 @@ deploy-dev:
- cp $DEPLOYMENT_SSH_KEY /root/.ssh/id_ed25519 && chmod 0600 /root/.ssh/id_ed25519
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 -L
-X POST
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer ${GH_STATUS_TOKEN}"
-H "X-GitHub-Api-Version: 2022-11-28"
https://api.github.com/repos/${STATUS_PROJECT}/statuses/${CI_COMMIT_SHA}
-d "{\"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 e541517

Please sign in to comment.