feat: enhance tool popover layout and increase max height for better … #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v4 | |
| 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@v3 | |
| - name: Build & push Docker image | |
| uses: docker/build-push-action@v6 | |
| 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: 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 "" |