From 56b90bb4fdfff78fe5eac42537198a8b43a65e7f Mon Sep 17 00:00:00 2001 From: jason810496 <810496@email.wlsh.tyc.edu.tw> Date: Tue, 20 Feb 2024 01:58:29 +0800 Subject: [PATCH] feat: add deployment workflow for frontend CI/CD --- .github/workflows/deployment.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/deployment.yaml diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml new file mode 100644 index 0000000..d06fe7d --- /dev/null +++ b/.github/workflows/deployment.yaml @@ -0,0 +1,22 @@ +name: Wheel CI for Frontend Deployment + +on: + push: + branches: [ feature/action, main] + tags: + - "*" + +env: + WHEEL_CI_SERVICE_NAME: frontend + WHEEL_CI_SERVICE_HOST: https://nckubikefestival.ncku.edu.tw/ + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Trigger webhook using curl + run: | + curl -X POST -H "Content-Type: application/json" -d '{"token": "${{ secrets.WHEEL_CI_TOKEN }}"}' ${{ env.WHEEL_CI_SERVICE_HOST }}/devops/api/v1/webhooks/github/service/${{ env.WHEEL_CI_SERVICE_NAME }} +