forked from aws-samples/eks-blueprints-actions-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (65 loc) · 1.98 KB
/
terraform-deploy-eks-demo-01.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
name: 'Terraform Deploy EKS Demo 01'
on:
workflow_dispatch:
pull_request:
paths:
- "*.tf*"
- "**.yaml"
- "clusters/demo-dev-01.tfvars"
- "clusters/demo-staging-01.tfvars"
- ".github/actions/terraform-init/action.yml"
- ".github/actions/terraform-plan/action.yml"
- ".github/workflows/terraform-deploy-eks-reusable.yml"
- ".github/workflows/terraform-deploy-eks-demo-01.yml"
- "!CODEOWNERS"
- "!LICENSE"
- "!**.md"
- "!gitignore"
push:
branches:
- "main"
paths:
- "*.tf*"
- "**.yaml"
- "clusters/demo-dev-01.tfvars"
- "clusters/demo-staging-01.tfvars"
- ".github/actions/terraform-init/action.yml"
- ".github/actions/terraform-plan/action.yml"
- ".github/workflows/terraform-deploy-eks-reusable.yml"
- ".github/workflows/terraform-deploy-eks-demo-01.yml"
- "!CODEOWNERS"
- "!LICENSE"
- "!**.md"
- "!gitignore"
jobs:
deploy-dev:
name: "Deploy Dev"
uses: ./.github/workflows/terraform-deploy-eks-reusable.yml
with:
aws-region: "us-west-2"
s3-bucket: "terraform-state-eks-demo-us-west-2"
team: "demo"
environment: "dev"
deployment-id: "01"
load-test-file: load-test-01.js
sample-app: game-2048
secrets:
AWS_ACCOUNT: ${{ secrets.DEV_AWS_ACCOUNT }}
AWS_IAM_ROLE: ${{ secrets.DEV_AWS_IAM_ROLE }}
WORKLOADS_PAT: ${{ secrets.DEMO_WORKLOADS_PAT }}
deploy-staging:
needs: [deploy-dev]
name: "Deploy Staging"
uses: ./.github/workflows/terraform-deploy-eks-reusable.yml
with:
aws-region: "us-west-2"
s3-bucket: "terraform-state-eks-demo-us-west-2"
team: "demo"
environment: "staging"
deployment-id: "01"
load-test-file: load-test-01.js
sample-app: game-2048
secrets:
AWS_ACCOUNT: ${{ secrets.STAGING_AWS_ACCOUNT }}
AWS_IAM_ROLE: ${{ secrets.STAGING_AWS_IAM_ROLE }}
WORKLOADS_PAT: ${{ secrets.DEMO_WORKLOADS_PAT }}