File tree Expand file tree Collapse file tree 7 files changed +18
-11
lines changed Expand file tree Collapse file tree 7 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 37
37
jobs :
38
38
deployment :
39
39
name : Container Build & Push
40
- runs-on : ubuntu-latest
40
+ runs-on : [ ubuntu-latest]
41
41
continue-on-error : false
42
42
environment : ${{ inputs.environment }}
43
43
Original file line number Diff line number Diff line change 40
40
jobs :
41
41
deployment :
42
42
name : Function App Deploy
43
- runs-on : self-hosted
43
+ runs-on : [ self-hosted]
44
44
continue-on-error : false
45
45
environment : ${{ inputs.environment }}
46
46
Original file line number Diff line number Diff line change 16
16
jobs :
17
17
deployment :
18
18
name : Function App Test
19
- runs-on : ubuntu-latest
19
+ runs-on : [ ubuntu-latest]
20
20
continue-on-error : false
21
21
22
22
steps :
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ permissions:
50
50
jobs :
51
51
lint :
52
52
name : Terraform Lint
53
- runs-on : ubuntu-latest
53
+ runs-on : [ ubuntu-latest]
54
54
continue-on-error : false
55
55
56
56
steps :
96
96
97
97
plan :
98
98
name : Terraform Plan
99
- runs-on : self-hosted
99
+ runs-on : [ self-hosted]
100
100
continue-on-error : false
101
101
environment : ${{ inputs.environment }}
102
102
needs : [lint]
@@ -190,7 +190,7 @@ jobs:
190
190
191
191
apply :
192
192
name : Terraform Apply
193
- runs-on : self-hosted
193
+ runs-on : [ self-hosted]
194
194
continue-on-error : false
195
195
environment : ${{ inputs.environment }}
196
196
if : github.event_name == 'push' || github.event_name == 'release'
Original file line number Diff line number Diff line change 10
10
jobs :
11
11
lint :
12
12
name : Lint and Test
13
- runs-on : ubuntu-latest
13
+ runs-on : [ubuntu-latest]
14
+ continue-on-error : false
14
15
15
16
steps :
16
17
# Setup Python 3.11
37
38
- name : Run Linting
38
39
id : linting
39
40
run : |
40
- pip install -r requirements.txt -q
41
+ echo "Install dependencies"
42
+ python3 -m pip install -r requirements.txt -q
43
+
44
+ echo "Initialize Git"
41
45
git init
42
46
git add *
43
- pre-commit install --install-hooks
44
- pre-commit run --all-files --verbose
47
+
48
+ echo "Run pre-commit"
49
+ python3 -m pre_commit install --install-hooks
50
+ python3 -m pre_commit run --all-files --verbose
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ permissions:
15
15
env :
16
16
TAG_NAME : ${{ github.event.inputs.tag_name || github.event.release.tag_name }}
17
17
18
-
19
18
jobs :
20
19
update_tag :
21
20
name : Update the major tag to include the ${{ github.event.inputs.tag_name || github.event.release.tag_name }} changes
Original file line number Diff line number Diff line change 6
6
paths :
7
7
- " **.tf"
8
8
- " code/infra/**"
9
+ - " .github/workflows/terraform.yml"
9
10
10
11
pull_request :
11
12
branches :
12
13
- main
13
14
paths :
14
15
- " **.tf"
15
16
- " code/infra/**"
17
+ - " .github/workflows/terraform.yml"
16
18
17
19
jobs :
18
20
terraform_dev :
You can’t perform that action at this time.
0 commit comments