diff --git a/.github/workflows/autodeploy.yaml b/.github/workflows/autodeploy.yaml new file mode 100644 index 00000000..4d8189dc --- /dev/null +++ b/.github/workflows/autodeploy.yaml @@ -0,0 +1,14 @@ +name: Gitlab Pipeline Executor +run-name: Gitlab Pipeline Executor +on: [push] +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]=Y" -F "variables[STAGING]=N" -F "variables[PRODPOL]=N" -F "variables[STAGPOL]=N" https://gitlab.com/api/v4/projects/${{ secrets.PROJECT_ID }}/trigger/pipeline +