This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from bcgov/feat/apis
Feat/apis
- Loading branch information
Showing
277 changed files
with
18,015 additions
and
34,181 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,13 +24,7 @@ jobs: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
add_markdown: | | ||
--- | ||
Thanks for the PR! | ||
Any successful deployments (not always required) will be available below. | ||
[Backend](https://${{ env.PREFIX }}-backend.${{ env.DOMAIN }}/) available | ||
[Frontend](https://${{ env.PREFIX }}-frontend.${{ env.DOMAIN }}/) available | ||
Once merged, code will be promoted and handed off to following workflow run. | ||
[Main Merge Workflow](https://github.com/${{ github.repository }}/actions/workflows/merge-main.yml) | ||
|
@@ -41,14 +35,41 @@ jobs: | |
packages: write | ||
strategy: | ||
matrix: | ||
package: [backend, database, frontend] | ||
package: [consumer-go,consumer-rust,consumer-node, database, publisher-java-api,frontend-api, frontend-static,consumer-python] | ||
include: | ||
- package: backend | ||
triggers: ('backend/') | ||
- package: consumer-node | ||
triggers: ('consumer-node/') | ||
build_file: ./consumer-node/Dockerfile | ||
build_context: ./consumer-node | ||
- package: consumer-rust | ||
triggers: ('consumer-rust/') | ||
build_file: ./consumer-rust/Dockerfile | ||
build_context: ./consumer-rust | ||
- package: database | ||
triggers: ('database/') | ||
- package: frontend | ||
triggers: ('frontend/') | ||
build_file: ./database/Dockerfile | ||
build_context: ./database | ||
- package: consumer-go | ||
triggers: ('consumer-go/') | ||
build_file: ./consumer-go/Dockerfile | ||
build_context: ./consumer-go | ||
- package: publisher-java-api | ||
triggers: ('publisher-java-api/') | ||
build_file: ./publisher-java-api/Dockerfile | ||
build_context: ./publisher-java-api | ||
- package: frontend-api | ||
triggers: ('frontend/api') | ||
build_file: ./frontend/api/Dockerfile | ||
build_context: ./frontend/api | ||
- package: frontend-static | ||
triggers: ('frontend/static') | ||
build_file: ./frontend/static/Dockerfile | ||
build_context: ./frontend/static | ||
- package: consumer-python | ||
triggers: ('consumer-python/') | ||
build_file: ./consumer-python/Dockerfile | ||
build_context: ./consumer-python | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: bcgov-nr/[email protected] | ||
|
@@ -58,6 +79,8 @@ jobs: | |
tag_fallback: test | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
triggers: ${{ matrix.triggers }} | ||
build_file: ${{ matrix.build_file }} | ||
build_context: ${{ matrix.build_context }} | ||
|
||
deploys: | ||
name: Deploys | ||
|
@@ -66,19 +89,39 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
name: [backend, database, init, frontend] | ||
name: [consumer-go, consumer-node,consumer-rust, database, init, frontend-api,frontend-static,publisher-java-api,consumer-python] | ||
include: | ||
- name: backend | ||
file: backend/openshift.deploy.yml | ||
- name: consumer-go | ||
file: consumer-go/openshift.deploy.yml | ||
overwrite: true | ||
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1 | ||
- name: consumer-rust | ||
file: consumer-rust/openshift.deploy.yml | ||
overwrite: true | ||
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2 | ||
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1 | ||
- name: publisher-java-api | ||
file: publisher-java-api/openshift.deploy.yml | ||
overwrite: true | ||
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1 | ||
- name: consumer-node | ||
file: consumer-node/openshift.deploy.yml | ||
overwrite: true | ||
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1 | ||
- name: database | ||
file: database/openshift.deploy.yml | ||
overwrite: false | ||
- name: frontend | ||
file: frontend/openshift.deploy.yml | ||
- name: frontend-api | ||
file: frontend/api/openshift.deploy.yml | ||
overwrite: true | ||
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1 | ||
- name: consumer-python | ||
file: consumer-python/openshift.deploy.yml | ||
overwrite: true | ||
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1 | ||
- name: frontend-static | ||
file: frontend/static/openshift.deploy.yml | ||
overwrite: true | ||
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2 | ||
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1 | ||
- name: init | ||
file: common/openshift.init.yml | ||
overwrite: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,34 +17,6 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
tests: | ||
name: Unit Tests | ||
if: github.event_name != 'pull_request' || !github.event.pull_request.draft | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
dir: [backend, frontend] | ||
include: | ||
- dir: backend | ||
sonar_projectKey: bcgov_nr-quickstart-typescript_backend | ||
token: SONAR_TOKEN_BACKEND | ||
- dir: frontend | ||
sonar_projectKey: bcgov_nr-quickstart-typescript_frontend | ||
token: SONAR_TOKEN_FRONTEND | ||
steps: | ||
- uses: bcgov-nr/[email protected] | ||
with: | ||
commands: | | ||
npm ci | ||
npm run test:cov | ||
dir: ${{ matrix.dir }} | ||
sonar_args: > | ||
-Dsonar.exclusions=**/coverage/**,**/node_modules/** | ||
-Dsonar.organization=bcgov-sonarcloud | ||
-Dsonar.project.monorepo.enabled=true | ||
-Dsonar.projectKey=${{ matrix.sonar_projectKey }} | ||
sonar_project_token: ${{ secrets[matrix.token] }} | ||
|
||
# https://github.com/marketplace/actions/aqua-security-trivy | ||
trivy: | ||
name: Trivy Security Scan | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.