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

Commit

Permalink
Merge pull request #111 from communitiesuk/FS-3075-split-aws-pre-deploy
Browse files Browse the repository at this point in the history
FS-3075 split aws pre deploy
  • Loading branch information
robk-dluhc authored Aug 16, 2023
2 parents e7ae4c1 + 3eab6a2 commit e2a45b6
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,22 @@ on:
- test
- uat
copilot:
description: Whether to deploy
description: Whether to deploy to AWS?
type: boolean
required: false
default: false
deploy_to_dev:
required: false
default: false
type: boolean
description: Deploy to CloudFoundry dev?
push:
paths-ignore:
- '**/README.md'

jobs:
test_and_deploy:
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ github.actor != 'dependabot[bot]' && !github.event.inputs.copilot }}
uses: communitiesuk/funding-design-service-workflows/.github/workflows/deploy.yml@main
with:
app_name: ${{ github.event.repository.name }}
Expand All @@ -46,9 +51,17 @@ jobs:
version_to_build: $(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
owner: ${{ github.repository_owner }}
application: funding-service-design-account-store
pre_deploy_tests:
if: ${{ github.event.inputs.copilot }}
secrets:
E2E_PAT: ${{secrets.E2E_PAT}}
uses: communitiesuk/funding-design-service-workflows/.github/workflows/pre-deploy.yml@main
with:
db_name: fsd_account_store_test
postgres_unit_testing: true
copilot_build:
if: ${{ github.event.inputs.copilot }}
needs: [test_and_deploy]
needs: [pre_deploy_tests, paketo_build]
concurrency: deploy-${{ inputs.environment || 'test' }}
permissions:
id-token: write # This is required for requesting the JWT
Expand Down

0 comments on commit e2a45b6

Please sign in to comment.