-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.56 KB
/
workflow-main.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
name: Main pipeline Workflow
on:
push:
branches:
- main
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
generate-tag:
name: Generate tag
uses: ./.github/workflows/generate-tag.yml
build:
name: Build, Scan & Push Images
needs: [generate-tag]
uses: ./.github/workflows/build-push-images.yml
with:
docker_tag: ${{ needs.generate-tag.outputs.tag }}
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
deploy-dev-account:
name: TF Deploy Dev Account
uses: ./.github/workflows/account-deploy.yml
with:
workspace_name: development
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
deploy-dev-env:
name: Deploy Development Environment
needs: [build, generate-tag]
uses: ./.github/workflows/env-deploy.yml
with:
workspace_name: development
version_tag: ${{ needs.generate-tag.outputs.tag }}
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
github_access_token: ${{ secrets.GITHUB_TOKEN }}
test-dev-env:
name: Test Development Environment
needs: [deploy-dev-env]
uses: ./.github/workflows/env-test.yml
with:
base_url: ${{ needs.deploy-dev-env.outputs.base_url }}
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}