-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.45 KB
/
deploy_prod_code.yml
File metadata and controls
46 lines (42 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Prod Code
# This deploys code changes to prod from release artifacts already present in the shared CI bucket and ECR repository.
on:
workflow_dispatch:
inputs:
lambda_version:
description: "Lambda release tag to deploy e.g. 0.9.4"
required: true
frontend_version:
description: "Frontend release tag to deploy e.g. 0.9.4"
required: true
ecs_version:
description: "ECS release tag to deploy e.g. 0.9.4"
required: true
permissions:
id-token: write
contents: write
jobs:
get_build:
name: Resolve
uses: ./.github/workflows/build_get.yml
with:
environment: ci
lambda_version: ${{ inputs.lambda_version }}
frontend_version: ${{ inputs.frontend_version }}
ecs_version: ${{ inputs.ecs_version }}
deploy:
name: Deploy
uses: ./.github/workflows/deploy.yml
needs:
- get_build
with:
environment: prod
lambda_version: ${{ needs.get_build.outputs.lambda_version }}
frontend_version: ${{ needs.get_build.outputs.frontend_version }}
code_bucket: ${{ needs.get_build.outputs.code_bucket }}
lambda_matrix: ${{ needs.get_build.outputs.lambda_version_files }}
task_matrix: ${{ needs.get_build.outputs.ecs_task_matrix }}
ecs_image_uris: ${{ needs.get_build.outputs.ecs_image_uris }}
# we can also scope the deployment here if needed, as below
# lambda_matrix: '["api"]'
# task_matrix: '["worker"]'