Skip to content

Commit

Permalink
Add GitLab CI trigger in GitHub checks (#64)
Browse files Browse the repository at this point in the history
* Create trigger_ci.yml

* Create CODEOWNERS

---------

Co-authored-by: Ryan McCormick <[email protected]>
  • Loading branch information
nvda-mesharma and rmccorm4 authored May 21, 2024
1 parent 1bafc80 commit 3f61b39
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/trigger_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
pull_request:
jobs:
mirror_repo:
environment: GITLAB
runs-on: self-hosted
steps:
- name: Sync Mirror Repository
run: |
#!/bin/bash
curl --request POST --header "PRIVATE-TOKEN:${{ secrets.TOKEN }}" "${{ secrets.MIRROR_URL }}"
trigger-ci:
environment: GITLAB
needs: mirror_repo
runs-on: self-hosted
steps:
- name: Trigger Pipeline
run: |
#!/bin/bash
curl --fail --request POST --form token=${{ secrets.PIPELINE_TOKEN }} -F ref=${GITHUB_HEAD_REF} -F variables[RULE_WORKFLOW]="DS_TEST_TRITON_CLI" "${{ secrets.PIPELINE_URL }}"
7 changes: 7 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
##############################################################
# List of approvers/reviewers for Developer Tools
##############################################################
# Learn about CODEOWNERS file format:
# https://help.github.com/en/articles/about-code-owners
# These owners will be the default owners for everything in the github ci workflows
.github/workflows/* @nvda-mesharma

0 comments on commit 3f61b39

Please sign in to comment.