Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wlstmd committed Aug 26, 2024
0 parents commit 68cb9c4
Show file tree
Hide file tree
Showing 878 changed files with 316,583 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/azure-dev-ai.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Azure AI Service Deployment

on:
workflow_dispatch:
push:
paths:
- ai/**

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ai/requirements.txt
- name: Zip artifact for deployment
run: |
cd ai
zip -r ../ai-deployment.zip .
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: "${{ secrets.AZURE_AI_APP_NAME }}"
publish-profile: ${{ secrets.AZURE_AI_WEBAPP_PUBLISH_PROFILE }}
package: ./ai-deployment.zip
42 changes: 42 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy to Azure App Service

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3

- name: Setup Node.js version
uses: actions/setup-node@v4
with:
node-version: "18.x"

- name: Install Dependencies
working-directory: ./backend
run: npm install

- name: Build the application
working-directory: ./backend
run: npm run build

- name: Deploy to Azure App Service
uses: azure/webapps-deploy@v2
with:
app-name: cdc
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ./backend
env:
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_USERNAME: ${{ secrets.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_DATABASE: ${{ secrets.DB_DATABASE }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
JWT_ACCESS_TOKEN_EXPIRATION: ${{ secrets.JWT_ACCESS_TOKEN_EXPIRATION }}
JWT_REFRESH_TOKEN_EXPIRATION: ${{ secrets.JWT_REFRESH_TOKEN_EXPIRATION }}
Loading

0 comments on commit 68cb9c4

Please sign in to comment.