From 88b8d186c06c4a31d33bf8478f49b950098dad45 Mon Sep 17 00:00:00 2001 From: Naresh Kumar D Date: Fri, 16 Oct 2026 12:26:45 +0530 Subject: [PATCH] Update push-docker-image.yml Pushes the workspaces-backend to the app service on push --- .github/workflows/push-docker-image.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml index f8cdee6..075aafd 100644 --- a/.github/workflows/push-docker-image.yml +++ b/.github/workflows/push-docker-image.yml @@ -1,4 +1,4 @@ -name: Push Docker Image to Azure Container Registry +name: Push Docker Image to Azure Container Registry and Deploy to Azure on: workflow_dispatch: @@ -61,4 +61,19 @@ jobs: platforms: linux/amd64 tags: ${{ vars.DOCKERHUB_REGISTRY }}/workspaces-backend-v2:${{ needs.set-github-environment.outputs.environment }}, ${{ vars.DOCKERHUB_REGISTRY }}/workspaces-backend-v2:${{github.sha}} - \ No newline at end of file + deploy: + runs-on: ubuntu-latest + needs: build + name: "Deploy to Azure" + steps: + - name: Display environment + run: echo "Deploying to ${{ needs.set-github-environment.outputs.environment }}" + - name: Login to Azure + uses: azure/login@v2.0.0 + with: + creds: ${{ secrets.TDEI_CORE_AZURE_CREDS }} + - name: Deploy to Azure + uses: azure/webapps-deploy@v2 + with: + app-name: ws-backend-${{ needs.set-github-environment.outputs.environment }} + images: ${{ vars.DOCKERHUB_REGISTRY }}/workspaces-backend-v2:${{ needs.set-github-environment.outputs.environment }} \ No newline at end of file