-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.43 KB
/
deploy_dev_code.yml
File metadata and controls
54 lines (47 loc) · 1.43 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
47
48
49
50
51
52
53
54
name: Dev Code
# This deploys code changes to dev without touching infra.
on:
workflow_dispatch:
permissions:
id-token: write
contents: write
jobs:
setup:
name: Discover
uses: ./.github/workflows/get_directories.yml
build:
name: Build
uses: ./.github/workflows/build.yml
needs:
- setup
with:
environment: dev
lambda_version: ${{ github.sha }}
frontend_version: ${{ github.sha }}
ecs_version: ${{ github.sha }}
lambda_matrix: ${{ needs.setup.outputs.lambda_dirs }}
ecs_matrix: ${{ needs.setup.outputs.container_dirs }}
get_build:
name: Resolve
needs: build
uses: ./.github/workflows/build_get.yml
with:
environment: dev
lambda_version: ${{ needs.build.outputs.lambda_version }}
frontend_version: ${{ needs.build.outputs.frontend_version }}
ecs_version: ${{ needs.build.outputs.ecs_version }}
deploy:
name: Deploy
uses: ./.github/workflows/deploy.yml
needs:
- setup
- build
- get_build
with:
environment: dev
lambda_version: ${{ needs.build.outputs.lambda_version }}
frontend_version: ${{ needs.build.outputs.frontend_version }}
code_bucket: ${{ needs.get_build.outputs.code_bucket }}
lambda_matrix: ${{ needs.setup.outputs.lambda_dirs }}
task_matrix: ${{ needs.get_build.outputs.ecs_task_matrix }}
ecs_image_uris: ${{ needs.get_build.outputs.ecs_image_uris }}