Skip to content

edersonbrilhante/gitlab-runner-service-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gitlab Runner Service Example

This project shows how to use gitlab-runner-action in a github workflow triggered in a gitlab-job gitlabci

Triggering a github workflow from a gitlab-ci job

start-crosscicd:
  image: alpine
  before_script:
    - apk add --update curl && rm -rf /var/cache/apk/*
  script: |
      curl -H "Authorization: token ${GITHUB_TOKEN}" \
      -H 'Accept: application/vnd.github.everest-preview+json' \
      "https://api.github.com/repos/${GITHUB_REPO}/dispatches" \
      -d '{"event_type": "gitlab_trigger_'${CI_PIPELINE_ID}'", "client_payload": {"registration_token": "'${GITLAB_REGISTRATION_TOKEN}'"}}'

Releases

No releases published

Packages

No packages published