File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Manual deploy
2+ concurrency : build_and_deploy_v2_${{ github.ref_name }} # ensures that the job waits for any deployments triggered by the build workflow to finish
3+
4+ on :
5+ workflow_dispatch :
6+ inputs :
7+ environment :
8+ description : Environment to deploy to
9+ required : true
10+ type : choice
11+ default : qa
12+ options :
13+ - qa
14+ - staging
15+ - production
16+ image_tag :
17+ description : Docker image tag to be deployed
18+ required : true
19+
20+ permissions :
21+ id-token : write
22+ pull-requests : write
23+
24+ jobs :
25+ deploy :
26+ name : ${{ github.event.inputs.environment }} deployment
27+ runs-on : ubuntu-latest
28+ environment :
29+ name : ${{ github.event.inputs.environment }}
30+ url : ${{ steps.deploy_app_v2.outputs.deploy-url }}
31+ steps :
32+ - name : Checkout
33+ uses : actions/checkout@v4
34+
35+ - name : Configure AWS credentials
36+ uses : aws-actions/configure-aws-credentials@v4
37+ with :
38+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
39+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
40+ aws-region : eu-west-2
41+ role-to-assume : Deployments
42+ role-duration-seconds : 3600
43+ role-skip-session-tagging : true
44+
45+ - name : Deploy App to ${{ github.event.inputs.environment }}
46+ id : deploy_app_v2
47+ uses : ./.github/actions/deploy/
48+ with :
49+ azure-client-id : ${{ secrets.AZURE_CLIENT_ID }}
50+ azure-tenant-id : ${{ secrets.AZURE_TENANT_ID }}
51+ azure-subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
52+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
53+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
54+ environment : ${{ github.event.inputs.environment }}
55+ tag : ${{ github.event.inputs.image_tag }}
You can’t perform that action at this time.
0 commit comments