Skip to content

fix: error during parse request in create event endpoint #85

fix: error during parse request in create event endpoint

fix: error during parse request in create event endpoint #85

Workflow file for this run

name: Deploy dev
on:
push:
branches: [ "main" ]
paths:
- '**.js'
- '**.ts'
- '**.tsx'
- '**.jsx'
- '**.json'
- '.env.local.example'
- '**.yaml'
- '**.yml'
- 'Dockerfile'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: npm install
- run: npm run create:env
env:
NEXT_PUBLIC_APP_ENV: development
NEXT_PUBLIC_APP_ORIGIN: https://dev-room.inlive.app
NEXT_PUBLIC_INLIVE_HUB_ORIGIN: https://dev-hub.inlive.app
NEXT_PUBLIC_INLIVE_HUB_VERSION: v1
NEXT_PUBLIC_INLIVE_API_ORIGIN: ${{secrets.DEV_API_ORIGIN}}
NEXT_PUBLIC_INLIVE_API_VERSION: v1
NEXT_PUBLIC_MIXPANEL_TOKEN: ${{secrets.PUBLIC_MIXPANEL_TOKEN}}
NEXT_PUBLIC_SENTRY_DSN: ${{secrets.PUBLIC_SENTRY_DSN}}
NEXT_PUBLIC_ENABLE_WEBINAR: false
NEXT_PUBLIC_EVENT_TRIAL_COUNT: 3
NEXT_PUBLIC_EVENT_FORM_URL: "google.com"
ALLOW_EDIT_CANCELLED_EVENT: false
PERSISTENT_DATA: true
ENABLE_MAILER: true
ROOM_INV_EMAIL_TEMPLATE: inlive-room-event-invitation
INLIVE_HUB_API_KEY: ${{secrets.HUB_KEY}}
ROOM_LOCAL_STORAGE_PATH: ./storage
PORT: 3000
MAILER_API_KEY: ${{secrets.MAILER_API_KEY}}
MAILER_DOMAIN : mail.inlive.app
- name: Set Short SHA
run: echo "SHORT_SHA=$(git rev-parse --short ${{ github.sha }})" >> "$GITHUB_ENV"
- uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCLOUD_SERVICE_KEY }}
- name: 🐋 Configure Docker for pushing
run: gcloud auth configure-docker asia-docker.pkg.dev
- name: Build image
run: |
docker asia-docker.pkg.dev/asgard-livestream/inlive-asia/inlive-room || true
docker build --platform=linux/amd64 -t inlive-room:latest\
--cache-from=asia-docker.pkg.dev/asgard-livestream/inlive-asia/inlive-room:latest .
- name: ☁️ Deploy to GCP Artifact Registry
run: |
docker tag inlive-room:latest asia-docker.pkg.dev/asgard-livestream/inlive-asia/inlive-room:latest
docker tag inlive-room:latest asia-docker.pkg.dev/asgard-livestream/inlive-asia/inlive-room:${{ env.SHORT_SHA }}
docker push asia-docker.pkg.dev/asgard-livestream/inlive-asia/inlive-room:latest
docker push asia-docker.pkg.dev/asgard-livestream/inlive-asia/inlive-room:${{ env.SHORT_SHA }}
- name: Run kubectl to update room app
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.MICROK8S }}å
with:
args: set image deployment/room -n inlive-dev room=asia-docker.pkg.dev/asgard-livestream/inlive-asia/inlive-room:${{ env.SHORT_SHA }}