Skip to content

Commit

Permalink
add deploy file
Browse files Browse the repository at this point in the history
  • Loading branch information
4mjeo committed Oct 23, 2024
1 parent 3353020 commit 7ade08d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CD

on:
push:
branches:
- main
- develop

jobs:
build:
runs-on: ubuntu-latest

permissions:
id-token: write
contents: read

strategy:
matrix:
node-version: [22.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '22.x'

- run: yarn
- run: yarn build

- name: Deploy to xquare
uses: team-xquare/xquare-deployment-action@master
with:
environment: prod
access_key: ${{ secrets.XQUARE_ACCESS_KEY }}
buildargs: |
MYSQL_HOST=${{ secrets.MYSQL_HOST }}
MYSQL_USERNAME=${{ secrets.MYSQL_USERNAME }}
MYSQL_PASSWORD=${{ secrets.MYSQL_PASSWORD }}
REDIS_HOST=${{ secrets.REDIS_HOST }}
yarn_docker_build: true
yarn_workspace: '@service/eeats'
5 changes: 5 additions & 0 deletions .xqaure/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
config:
name: eeats
service_type: be
port: 8080
prefix: /

0 comments on commit 7ade08d

Please sign in to comment.