Skip to content

Commit

Permalink
feat: add deployment workflow for frontend CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
jason810496 committed Feb 19, 2024
1 parent 7eec3eb commit 56b90bb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 56b90bb

Please sign in to comment.