Skip to content

Commit

Permalink
Merge pull request #1258 from DFE-Digital/aks-prod-domain
Browse files Browse the repository at this point in the history
Aks prod domain
  • Loading branch information
vipin-dfe authored Dec 4, 2024
2 parents ef0ec6b + 6f28dd6 commit 937b565
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion terraform/application/config/production.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"start_hour": 2,
"start_minute": 0
},
"worker_replicas": 0,
"postgres_flexible_server_sku": "GP_Standard_D2ds_v4",
"enable_postgres_backup_storage": true,
"postgres_enable_high_availability": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"to-domain": "refer-serious-misconduct.education.gov.uk"
}
],
"origin_hostname": "s165p01-rsm-production-app.azurewebsites.net"
"origin_hostname": "refer-serious-misconduct-production.teacherservices.cloud"
}
}
}

0 comments on commit 937b565

Please sign in to comment.