Trigger GitLab Pipeline
ActionsTags
(2)Github Action to trigger Gitlab CD pipeline
Credit to digital-blueprint, This clone is adapted to my usecase.
This GitHub action triggers and waits for a GitLab pipeline to complete.
You can for example use this action in your GitHub workflow to trigger a deployment pipeline on a private GitLab server after a successful build pipeline and wait for the deployment (with possible End2End tests) to finish, so you would get a notification if the deployment failed.
The GitLab URL to trigger the pipeline on. Default gitlab.com
.
Required The ID or path of the project owned by the authenticated user. You will find the Project ID in the General Settings of your GitLab project.
The branch or tag to run the pipeline on. Default main
.
Required The GitLab pipeline trigger token to trigger the pipeline.
A map of key-valued strings containing the pipeline variables. For example: { VAR1: "value1", VAR2: "value2" }
.. Default "World"
.
The URL of the pipeline, for example https://gitlab.com/foo/bar/pipelines/47
.
uses: mb-wali/gitlab-cd-trigger@main
with:
URL: 'gitlab.example.com'
GITLB_TRIGGER_TOKEN: ${{ secrets.DEPLOY_TRIGGER_TOKEN }}
PROJECT_ID: '123'
REF_NAME: 'main'
PIPELINE_VARIABLES: '{"VAR1":"value1","VAR2":"value2"}'
Trigger GitLab Pipeline is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.