From c3a88bab79e95b21325c1033178fff018a1aaf26 Mon Sep 17 00:00:00 2001 From: vipin-dfe Date: Thu, 28 Nov 2024 14:57:03 +0000 Subject: [PATCH] Remove legacy prod jobs --- .github/workflows/build-and-deploy.yml | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index c67c32584..7970f13cc 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -89,31 +89,10 @@ jobs: image-tag: ${{ github.sha }} azure-credentials: ${{ secrets.AZURE_CREDENTIALS }} - deploy_prod: - name: Deploy to production environment - runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' && github.event_name == 'push' - concurrency: deploy_prod - needs: [build_image, deploy_aks] - environment: - name: production - url: ${{ steps.deploy.outputs.environment_url }} - - steps: - - uses: actions/checkout@v4 - - - uses: ./.github/actions/deploy-environment - id: deploy - with: - environment_name: production - image_name_tag: ${{ needs.build_image.outputs.image_name_tag }} - image_tag: ${{ github.sha }} - azure_credentials: ${{ secrets.AZURE_CREDENTIALS }} - notify_slack_of_failures: name: Notify Slack of failures runs-on: ubuntu-latest - needs: [build_image, deploy_review_app_aks, deploy_aks, deploy_prod] + needs: [build_image, deploy_review_app_aks, deploy_aks] environment: aks-test env: ENVIRONMENT_NAME: ${{ needs.deploy_aks.outputs.environment_name || 'dev' }} @@ -135,9 +114,6 @@ jobs: elif ${{ needs.deploy_aks.result == 'failure' }} then job=deploy_aks - elif ${{ needs.deploy_prod.result == 'failure' }} - then - job=deploy_prod fi echo "JOB=${job}" >> $GITHUB_ENV