From 064c76895e59f1d87fb79ba3e19380162f6a10ba Mon Sep 17 00:00:00 2001 From: zoltansatoshipay Date: Mon, 8 Jul 2024 12:08:45 +0200 Subject: [PATCH] Added autodeploy actions --- .github/workflows/autodeploy.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/autodeploy.yaml 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 +