Skip to content

Deploy branch main to test and prod (SHA:a3406a4c2a84d4efc684eb314d4240f42e9b08ab) #111

Deploy branch main to test and prod (SHA:a3406a4c2a84d4efc684eb314d4240f42e9b08ab)

Deploy branch main to test and prod (SHA:a3406a4c2a84d4efc684eb314d4240f42e9b08ab) #111

name: Deployment pipeline for post-award services
run-name: Deploy branch ${{ github.ref_name }} to test and prod (${{ format('SHA:{0}', github.sha) }})
on:
push:
branches:
- main
jobs:
paketo_build:
name: Build post-award image
permissions:
packages: write
concurrency: build-${{ github.sha }}
uses: communitiesuk/funding-service-design-workflows/.github/workflows/package.yml@main
with:
assets_required: true
version_to_build: ${{ github.sha }}
owner: ${{ github.repository_owner }}
application: ${{ github.event.repository.name }}
test_deploy:
name: Deploy to test
needs: [ paketo_build ]
concurrency:
group: deploy-test
cancel-in-progress: false
uses: ./.github/workflows/aws_copilot_deployment.yml
with:
copilot_environment: test
image_location: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}
run_e2e_tests: true
secrets: inherit
prod_deploy:
if: ${{ github.ref_name == 'main' }}
name: Deploy to prod
needs: [ paketo_build, test_deploy ]
concurrency:
group: deploy-prod
cancel-in-progress: false
uses: ./.github/workflows/aws_copilot_deployment.yml
with:
copilot_environment: prod
image_location: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}
secrets: inherit