Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

배포자동화

배포자동화 #3

Workflow file for this run

name: Deploy to Azure Web App
on:
push:
branches:
- main
paths:
- 'source_codes/flask/**'
pull_request:
paths:
- 'source_codes/flask/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Azure CLI
run: |
sudo apt-get update
sudo apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deploy to Azure Web App
run: |
az webapp up --runtime PYTHON:3.9 --sku B1 --logs --resource-group rg-QuickChan --location KoreaCentral