-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (73 loc) · 2.61 KB
/
main-workflow.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
68
69
70
71
72
73
74
75
76
77
78
79
name: Tekken7-CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
id-token: write
contents: read
pull-requests: write
jobs:
test:
uses: ./.github/workflows/reusable-workflow.yml
with:
deploy: false
environ: test
aws-ecr-repo: ${{ github.repository }}
image-version: ${{ github.run_number }}
database_engine: ${{ vars.DB_ENGINE }}
database_name: ${{ vars.DB_NAME }}
database_port: ${{ vars.DB_PORT }}
secrets:
aws-ecr-registry: ${{ secrets.AWS_ECR_REGISTRY }}
aws-region: ${{ secrets.AWS_REGION }}
aws-tekken7-oidc-role-arn: ${{ secrets.AWS_TEKKEN7_OIDC_ROLE_ARN }}
snyk_token: ${{ secrets.SNYK_TOKEN }}
test_reporter_id: ${{ secrets.TEST_REPORTER_ID }}
django_secret_key: ${{ secrets.DJANGO_SECRET_KEY }}
database_user: ${{ secrets.DB_USER }}
database_host: ${{ secrets.DB_HOST }}
database_password: ${{ secrets.DB_PASSWORD }}
staging:
needs: test
uses: ./.github/workflows/reusable-workflow.yml
with:
deploy: false
environ: staging
aws-ecr-repo: ${{ github.repository }}
image-version: ${{ github.run_number }}
database_engine: ${{ vars.DB_ENGINE }}
database_name: ${{ vars.DB_NAME }}
database_port: ${{ vars.DB_PORT }}
secrets:
aws-ecr-registry: ${{ secrets.AWS_ECR_REGISTRY }}
aws-region: ${{ secrets.AWS_REGION }}
aws-tekken7-oidc-role-arn: ${{ secrets.AWS_TEKKEN7_OIDC_ROLE_ARN }}
snyk_token: ${{ secrets.SNYK_TOKEN }}
test_reporter_id: ${{ secrets.TEST_REPORTER_ID }}
django_secret_key: ${{ secrets.DJANGO_SECRET_KEY }}
database_user: ${{ secrets.DB_USER }}
database_host: ${{ secrets.DB_HOST }}
database_password: ${{ secrets.DB_PASSWORD }}
production:
needs: staging
uses: ./.github/workflows/reusable-workflow.yml
with:
deploy: true
environ: production
aws-ecr-repo: ${{ github.repository }}
image-version: ${{ github.run_number }}
database_engine: ${{ vars.DB_ENGINE }}
database_name: ${{ vars.DB_NAME }}
database_port: ${{ vars.DB_PORT }}
secrets:
aws-ecr-registry: ${{ secrets.AWS_ECR_REGISTRY }}
aws-region: ${{ secrets.AWS_REGION }}
aws-tekken7-oidc-role-arn: ${{ secrets.AWS_TEKKEN7_OIDC_ROLE_ARN }}
snyk_token: ${{ secrets.SNYK_TOKEN }}
test_reporter_id: ${{ secrets.TEST_REPORTER_ID }}
django_secret_key: ${{ secrets.DJANGO_SECRET_KEY }}
database_user: ${{ secrets.DB_USER }}
database_host: ${{ secrets.DB_HOST }}
database_password: ${{ secrets.DB_PASSWORD }}