Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aks prod domain #1258

Merged
merged 3 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
}
Loading