Skip to content

feat(chat): enhance requestAnalyze function to handle file uploads an… #79

feat(chat): enhance requestAnalyze function to handle file uploads an…

feat(chat): enhance requestAnalyze function to handle file uploads an… #79

Workflow file for this run

name: Deploy to Azure
on:
push:
branches: [main]
paths:
- 'src/Dashboard/**'
- '.github/workflows/deploy.yml'
workflow_dispatch:
permissions:
id-token: write
contents: read
env:
ACR_NAME: crfinopsagent
ACR_LOGIN: crfinopsagent.azurecr.io
IMAGE: crfinopsagent.azurecr.io/finops-agent
WEBAPP_NAME: finops-agent-container
RESOURCE_GROUP: rg-finops-agent
jobs:
deploy:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # full history for git rev-list --count
- name: Azure Login (OIDC)
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Login to ACR
run: az acr login --name ${{ env.ACR_NAME }}
- name: Set build metadata
id: meta
run: |
echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "build=$(git rev-list --count HEAD)" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build & push Docker image
uses: docker/build-push-action@v7
with:
context: src/Dashboard
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:${{ steps.meta.outputs.sha }}
build-args: |
BUILD_SHA=${{ steps.meta.outputs.sha }}
BUILD_NUMBER=${{ steps.meta.outputs.build }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Configure App Service settings
run: |
az webapp config appsettings set \
--name ${{ env.WEBAPP_NAME }} \
--resource-group ${{ env.RESOURCE_GROUP }} \
--settings AzureOpenAI__Endpoint="${{ secrets.AZURE_OPENAI_ENDPOINT }}"
- name: Restart App Service
run: az webapp restart --name ${{ env.WEBAPP_NAME }} --resource-group ${{ env.RESOURCE_GROUP }}
- name: Verify deployment
run: |
sleep 30
curl -sf https://azure-finops-agent.com/api/version | head -c 200
echo ""