File tree 3 files changed +52
-3
lines changed
3 files changed +52
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : CI/CD Pipeline
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - development
7
+ - main
8
+ pull_request :
9
+ branches :
10
+ - development
11
+ - main
12
+
13
+ jobs :
14
+ lint :
15
+ uses : ./.github/workflows/lint.yml
16
+
17
+ gitguardian :
18
+ uses : ./.github/workflows/gitguardian.yml
19
+ secrets :
20
+ GITGUARDIAN_API_KEY : ${{ secrets.GITGUARDIAN_API_KEY}}
21
+
22
+ deploy-dev :
23
+ needs : [lint, gitguardian]
24
+ if : github.ref == 'refs/heads/development' && github.event_name == 'push'
25
+ runs-on : ubuntu-latest
26
+ environment : development
27
+ steps :
28
+ - name : Deploy to Render (Development)
29
+ env :
30
+ deploy_url : ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
31
+ run : |
32
+ curl "$deploy_url"
33
+
34
+ deploy-prod :
35
+ needs : [lint, gitguardian]
36
+ if : github.ref == 'refs/heads/main' && github.event_name == 'push'
37
+ runs-on : ubuntu-latest
38
+ environment : production
39
+ steps :
40
+ - name : Deploy to Render (Production)
41
+ env :
42
+ deploy_url : ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
43
+ run : |
44
+ curl "$deploy_url"
Original file line number Diff line number Diff line change 1
1
name : GitGuardian scan
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ workflow_call :
5
+ secrets :
6
+ GITGUARDIAN_API_KEY :
7
+ required : true
4
8
5
9
jobs :
6
10
scanning :
13
17
with :
14
18
fetch-depth : 0 # fetch all history so multiple commits can be scanned
15
19
- name : GitGuardian scan
16
- uses : GitGuardian/ggshield/actions/secret@v1.30.1
20
+ uses : GitGuardian/ggshield/actions/secret@v1.32.0
17
21
env :
18
22
GITHUB_PUSH_BEFORE_SHA : ${{ github.event.before }}
19
23
GITHUB_PUSH_BASE_SHA : ${{ github.event.base }}
Original file line number Diff line number Diff line change 1
1
name : Lint
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ workflow_call :
4
5
5
6
jobs :
6
7
lint :
You can’t perform that action at this time.
0 commit comments