Skip to content

Commit 18ab7a4

Browse files
committed
testing gha worflow
1 parent 9527731 commit 18ab7a4

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

.github/workflows/pipeline.yaml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
name: Tech Report API Pipeline
22

3-
on:
4-
push:
5-
branches:
6-
- 'main'
7-
- 'feature**'
8-
delete:
9-
branches:
10-
- 'feature**'
3+
on: [push]
114

125
# 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 }}
148

159
jobs:
1610
test:
17-
if: github.event_name == 'push'
1811
runs-on: ubuntu-latest
1912
steps:
2013
- uses: actions/checkout@v3
@@ -31,3 +24,28 @@ jobs:
3124
run: |
3225
python -m pytest -W "ignore"
3326
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+

0 commit comments

Comments
 (0)