File tree Expand file tree Collapse file tree 1 file changed +28
-10
lines changed Expand file tree Collapse file tree 1 file changed +28
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : Tech Report API Pipeline
2
2
3
- on :
4
- push :
5
- branches :
6
- - ' main'
7
- - ' feature**'
8
- delete :
9
- branches :
10
- - ' feature**'
3
+ on : [push]
11
4
12
5
# env:
13
- # PIPELINE_USER_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
6
+ # PIPELINE_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
7
+ # PIPELINE_SA_KEY: ${{ secrets.GCP_SA_KEY }}
14
8
15
9
jobs :
16
10
test :
17
- if : github.event_name == 'push'
18
11
runs-on : ubuntu-latest
19
12
steps :
20
13
- uses : actions/checkout@v3
31
24
run : |
32
25
python -m pytest -W "ignore"
33
26
27
+ deploy_development :
28
+ if : github.ref == 'refs/heads/development'
29
+ runs-on : ubuntu-latest
30
+ needs : [test]
31
+
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+ - name : Google Cloud Auth
35
+ uses : ' google-github-actions/auth@v2'
36
+ # with:
37
+ # project_id: ${{ env.PIPELINE_PROJECT_ID }}
38
+ # credentials_json: ${{ env.PIPELINE_SA_KEY }}
39
+
40
+ - name : Setup Terraform
41
+ uses : hashicorp/setup-terraform@v3
42
+
43
+ - name : Terraform Init
44
+ run : terraform init
45
+
46
+ - name : Terraform Plan
47
+ id : plan
48
+ run : terraform plan -no-color
49
+ continue-on-error : true
50
+
51
+
You can’t perform that action at this time.
0 commit comments