-
Notifications
You must be signed in to change notification settings - Fork 149
35 lines (31 loc) · 935 Bytes
/
ci-cd.yaml
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
name: Big Bang CI/CD Pipeline
run-name: "🛠️ ${{ github.event.head_commit.message }} (${{ github.sha }})"
on:
push:
branches:
- big-bang-demo #normally 'main'
jobs:
ci-frontend:
uses: ./.github/workflows/ci-frontend.yml
with:
ref: ${{ github.sha }}
ci-backend:
uses: ./.github/workflows/ci-backend.yml
with:
ref: ${{ github.sha }}
cd-backend:
needs: [ci-frontend, ci-backend]
uses: ./.github/workflows/cd-backend.yml
with:
ref: ${{ github.sha }}
backend_host: ec2-18-207-176-189.compute-1.amazonaws.com
secrets: inherit
cd-frontend:
needs: [cd-backend]
uses: ./.github/workflows/cd-frontend.yml
with:
ref: ${{ github.sha }}
bucket_name: anyhasher-big-bang
frontend_host: anyhasher-big-bang.s3-website-us-east-1.amazonaws.com
backend_url: ec2-18-207-176-189.compute-1.amazonaws.com
secrets: inherit