Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #252 from communitiesuk/FS-3797-production-to-prod
Browse files Browse the repository at this point in the history
FS-3797 - Amend production to prod for deployment
  • Loading branch information
robk-dluhc authored Dec 4, 2023
2 parents 75e4bef + 624fc63 commit cf6f0b3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/copilot_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- dev
- test
- uat
- production
- prod
run_performance_tests:
required: false
default: false
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
echo "env_list=[\"${{ inputs.environment }}\"]" >> $GITHUB_OUTPUT
elif [ "${{ github.ref }}" == 'refs/heads/main' ]; then
echo "pre_deploy_list=[\"dev\", \"test\"]" >> $GITHUB_OUTPUT
echo "post_deploy_list=[\"uat\", \"production\"]" >> $GITHUB_OUTPUT
echo "post_deploy_list=[\"uat\", \"prod\"]" >> $GITHUB_OUTPUT
else
echo "pre_deploy_list=[\"dev\", \"test\"]" >> $GITHUB_OUTPUT
fi
Expand Down Expand Up @@ -342,17 +342,17 @@ jobs:
environment: uat
app_name: authenticator

production_deploy:
prod_deploy:
if: ${{ needs.copilot_environments_workflow_setup.outputs.post_matrix != '' && toJson(fromJson(needs.copilot_environments_workflow_setup.outputs.post_matrix)) != '[]' }}
concurrency:
group: 'fsd-preaward-copilot-production'
group: 'fsd-preaward-copilot-prod'
cancel-in-progress: false
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
needs: [ tag_version, post_uat_deploy_tests, paketo_build, copilot_environments_workflow_setup ]
runs-on: ubuntu-latest
environment: production
environment: prod
steps:
- name: Git clone the repository
uses: actions/checkout@v4
Expand All @@ -377,7 +377,7 @@ jobs:
- name: confirm copilot env
shell: bash
run: |
if [ $(copilot env ls) != "production" ]; then
if [ $(copilot env ls) != "prod" ]; then
echo $(copilot env ls)
exit 1
fi
Expand All @@ -390,7 +390,7 @@ jobs:
run: |
yq -i '.image.location = "ghcr.io/communitiesuk/funding-service-design-authenticator:${{ github.ref_name == 'main' && 'latest' || needs.tag_version.outputs.version_to_tag }}"' copilot/fsd-authenticator/manifest.yml
- name: Copilot production deploy
- name: Copilot prod deploy
id: deploy_build
run: |
copilot svc deploy --env production --app pre-award
copilot svc deploy --env prod --app pre-award
13 changes: 7 additions & 6 deletions copilot/fsd-authenticator/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,19 @@ environments:
value: 80
requests: 30
response_time: 2s
production:
prod:
http:
alias: authenticator.production.access-funding.levellingup.gov.uk
# alias: ["authenticator.production.access-funding.levellingup.gov.uk", "authenticator.access-funding.levellingup.gov.uk"] # For go live
alias: authenticator.prod.access-funding.levellingup.gov.uk
# alias: ["authenticator.prod.access-funding.levellingup.gov.uk", "authenticator.access-funding.levellingup.gov.uk"] # For go live
variables:
ALLOW_ASSESSMENT_LOGIN_VIA_MAGIC_LINK: false
COOKIE_DOMAIN: ".levellingup.gov.uk"
AUTHENTICATOR_HOST: "https://authenticator.production.access-funding.levellingup.gov.uk"
APPLICANT_FRONTEND_HOST: "https://frontend.production.access-funding.levellingup.gov.uk"
ASSESSMENT_FRONTEND_HOST: "https://assessment.production.access-funding.levellingup.gov.uk"
AUTHENTICATOR_HOST: "https://authenticator.prod.access-funding.levellingup.gov.uk"
APPLICANT_FRONTEND_HOST: "https://frontend.prod.access-funding.levellingup.gov.uk"
ASSESSMENT_FRONTEND_HOST: "https://assessment.prod.access-funding.levellingup.gov.uk"
POST_AWARD_FRONTEND_HOST: "https://find-monitoring-data.access-funding.levellingup.gov.uk"
POST_AWARD_SUBMIT_HOST: "https://submit-monitoring-data.access-funding.test.levellingup.gov.uk"
FLASK_ENV: production
count:
range: 2-4
cooldown:
Expand Down

0 comments on commit cf6f0b3

Please sign in to comment.