Gitlab Pipeline Executor #690
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Gitlab Pipeline Executor | |
| run-name: Gitlab Pipeline Executor | |
| on: | |
| push: | |
| branches: | |
| - staging | |
| jobs: | |
| Execute-Gitlab-Pipeline: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Triggers Gitlab Pipeline | |
| run: | | |
| ls ${{ github.workspace }} | |
| curl -X POST -F token=${{ secrets.GITLAB_TRIGGER }} -F "ref=development" -F "variables[PRODUCTION]=N" -F "variables[STAGING]=N" -F "variables[STAGVTX]=Y" -F "variables[PRODPOL]=N" -F "variables[STAGPOL]=N" https://gitlab.com/api/v4/projects/${{ secrets.PROJECT_ID }}/trigger/pipeline |