Skip to content

Commit

Permalink
refactor: ci build jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellmueller committed Jun 10, 2024
1 parent 585861b commit 81b1498
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 112 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Build BCIERS backend Docker container
on:
workflow_call:

## test

jobs:
backend-docker-build:
runs-on: ubuntu-latest
Expand Down
99 changes: 0 additions & 99 deletions .github/workflows/build-nx-apps.yaml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/build-registration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build Registration Docker container

on:
workflow_call:

jobs:
nx-docker-build-registration:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build registration container
uses: ./.github/actions/nx-app-build
with:
project: registration
image_url: ghcr.io/bcgov/cas-reg-frontend
github_token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/build-registration1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build Registration1 Docker container

on:
workflow_call:

jobs:
nx-docker-build-registration1:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build registration1 container
uses: ./.github/actions/nx-app-build
with:
project: registration1
image_url: ghcr.io/bcgov/cas-reg1-frontend
github_token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/build-reporting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build Reporting Docker container

on:
workflow_call:

jobs:
nx-docker-build-reporting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build reporting container
uses: ./.github/actions/nx-app-build
with:
project: reporting
image_url: ghcr.io/bcgov/cas-rep-frontend
github_token: ${{ secrets.GITHUB_TOKEN }}
28 changes: 17 additions & 11 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,27 @@ jobs:
working-directory: ./bciers
build-backend:
uses: ./.github/workflows/build-backend.yaml
build-nx-apps:
uses: ./.github/workflows/build-nx-apps.yaml
# build-registration:
# uses: ./.github/workflows/build-registration.yaml
build-registration1:
uses: ./.github/workflows/build-registration1.yaml
build-reporting:
uses: ./.github/workflows/build-reporting.yaml
test-code:
needs: [install-dev-tools]
uses: ./.github/workflows/test-code.yaml
scan-code-trivy:
uses: ./.github/workflows/scan-code-trivy.yaml
codeql-analysis:
uses: ./.github/workflows/codeql.yaml
test-backend:
needs: [build-backend, install-dev-tools]
needs: [build-backend, build-registration, install-dev-tools]
uses: ./.github/workflows/test-backend.yaml
test-nx-apps:
needs: [build-nx-apps, install-dev-tools]
uses: ./.github/workflows/test-nx-apps.yaml
test-e2e:
needs: [build-registration1, install-dev-tools]
uses: ./.github/workflows/test-e2e.yaml
secrets: inherit
zap-owasp:
needs: [build-nx-apps, build-backend, install-dev-tools]
# We will need to set up registration part 2 and reporting to get zap scanned
needs: [build-backend, build-registration1, install-dev-tools]
uses: ./.github/workflows/zap-owasp.yaml
scan-code-trivy:
uses: ./.github/workflows/scan-code-trivy.yaml
codeql-analysis:
uses: ./.github/workflows/codeql.yaml
File renamed without changes.

0 comments on commit 81b1498

Please sign in to comment.