endpoint - (Optional) Endpoint to Gitlab. e.g. https://gitlab.example.com. Leave blanc for default
token - Your Gitlab token. Make sure token has rights to launch pipelines
projectId - ProjectId of your pipeline repo
envs - (Optional) Environment variables you want to pass to Gitlab
ref - (Optional) Git branch of target pipeline repo
name: Build
on:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: qameta/gitlab-trigger@master
with:
token: ${{ secrets.GITLAB_TOKEN }}
projectId: "154854"
envs: VERSION=${{ steps.version.outputs.name }},ARCH=amd64