Skip to content

Commit b8d7806

Browse files
authored
Merge pull request #147 from chasinandrew/develop
Develop
2 parents b755af6 + da4c445 commit b8d7806

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/_deployment.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
description: Name of the target deployment environment. Acceptable values are 'dev', 'qa', or 'prod'
88

99
jobs:
10-
lint: #TODO: add linter for csharp / dotnet
10+
lint:
11+
#TODO: add linter for csharp / dotnet
1112
name: Lint
1213
if: github.event_name == 'pull_request'
1314
runs-on: 'ubuntu-latest'
@@ -16,8 +17,8 @@ jobs:
1617
- name: Checkout repository
1718
uses: actions/checkout@v3
1819

19-
#TODO: add editorconfig file for dotnet
2020
- name: PyLint
21+
if: ${{ vars.language }} == 'python'
2122
working-directory: ${{ vars.code_directory }}
2223
run: |
2324
pip install -r requirements.txt
@@ -55,15 +56,14 @@ jobs:
5556
# If this step fails, then you should remove it and run the build manually (see below)
5657
- name: Autobuild
5758
uses: github/codeql-action/autobuild@v2
58-
#TODO: add if statement for dotnet and python
5959

6060
- name: Perform CodeQL Analysis
6161
uses: github/codeql-action/analyze@v2
6262
with:
6363
category: "/language:${{matrix.language}}"
6464

6565
image-build-push:
66-
if: contains(fromJSON('["develop", "main"]'), github.ref_name)
66+
if: github.event_name == 'push'
6767
name: "Image Build & Push"
6868
runs-on: ubuntu-latest
6969
environment: ${{ inputs.environment }}
@@ -108,7 +108,7 @@ jobs:
108108
docker push "${{ vars.region }}-docker.pkg.dev/${{ vars.artifact_registry_project }}/${{ vars.artifact_registry_repo }}/${{ vars.service_name }}:latest"
109109
110110
deploy:
111-
if: contains(fromJSON('["develop", "main"]'), github.ref_name) && github.event == 'push'
111+
if: github.event_name == 'push'
112112
name: "Cloud Run Deployment"
113113
runs-on: ubuntu-latest
114114
environment: ${{ inputs.environment }}

.github/workflows/deployment.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Build and Deploy to Cloud Run
22
on:
33
pull_request:
4-
branches: [develop, main]
4+
types: [opened, reopened, synchronize]
55
push:
6+
branches: [develop, main]
67

78
jobs:
89
#DEV
@@ -20,7 +21,7 @@ jobs:
2021

2122
#QA
2223
qa:
23-
if: github.ref_name == 'main' && github.event_name == 'push'
24+
if: github.ref_name == 'main'
2425
uses: ./.github/workflows/_deployment.yaml
2526
permissions:
2627
id-token: write

0 commit comments

Comments
 (0)