Skip to content

Add start script & dotenv setting for local development #3

Add start script & dotenv setting for local development

Add start script & dotenv setting for local development #3

Workflow file for this run

name: frontend_build_deploy
on:
push:
paths:
- "app/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: ACR build
id: build-push-acr
uses: azure/acr-build@v1
with:
service_principal: ${{ secrets.service_principal }}
service_principal_password: ${{ secrets.service_principal_password }}
tenant: ${{ secrets.tenant }}
registry: ${{ secrets.registry }}
repository: ${{ secrets.repository }}
image: chatbot-app
folder: app
branch: main
tag: ${{ github.sha }}
- name: Azure login
id: login
uses: azure/[email protected]
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Set AKS context
id: set-context
uses: azure/aks-set-context@v3
with:
resource-group: '${{ secrets.resource_group }}'
cluster-name: '${{ secrets.cluster_name }}'
- name: Setup kubectl
id: install-kubectl
uses: azure/setup-kubectl@v3
- name: Deploy to AKS
id: deploy-aks
uses: Azure/k8s-deploy@v4
with:
namespace: 'default'
manifests: |
manifest/app.yaml
images: '${{ secrets.registry }}.azurecr.io/${{ secrets.repository }}/chatbot-app:${{ github.sha }}'
pull-images: false