commit 3ccc9b98cc263ba6e7520a9913dd2e5abea9a6cd parent 3396d1cc46cc961a8c29f2f9e239aaed01938c46 Author: Marcel <MTRNord@users.noreply.github.com> Date: Thu, 20 Jan 2022 20:00:48 +0100 Do Webhook via CI instead. (#9) Diffstat:
| A | .github/workflows/deploy.yml | | | 20 | ++++++++++++++++++++ |
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml @@ -0,0 +1,20 @@ +name: Deploy to server +on: + push: + branches: [main] +permissions: read-all + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Harden Runner + uses: step-security/harden-runner@14dc64f30986eaa2ad2dddcec073f5aab18e5a24 # v1 + with: + allowed-endpoints: "gitlab.nordgedanken.dev:443" + - name: curl + uses: wei/curl@012398a392d02480afa2720780031f8621d5f94c # master + with: + args: -X POST -F "token=$GITLAB_TOKEN" -F "ref=main" -F "variables[GITHUB_COMMIT_ID]=$GITHUB_SHA" https://gitlab.nordgedanken.dev/api/v4/projects/2/trigger/pipeline + env: + GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}