Skip to content

Commit

Permalink
SPDBT-1941: build refactoring
Browse files Browse the repository at this point in the history
# Description

[SPDBT-1941](https://justice.gov.bc.ca/jira/browse/SPDBT-1941)

This PR includes the following proposed change(s):

- build improvements
  • Loading branch information
ytqsl authored Dec 16, 2023
1 parent f16d060 commit e511b22
Show file tree
Hide file tree
Showing 28 changed files with 562 additions and 352 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/cd-workflow.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/ci-workflow.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/dynamics-cd-test-env.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/dynamics-helper-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Dynamics Helper Build

on:
push:
branches: ["main"]
paths:
- src/**
- "!src/Spd.Presentation.Licensing/**"
- "!src/Spd.Presentation.Screening/**"
- .github/workflows/dynamics-helper-build.yml
- .github/workflows/docker-build-template.yml

pull_request:
branches: ["main"]
paths:
- src/**
- "!src/Spd.Presentation.Licensing/**"
- "!src/Spd.Presentation.Screening/**"
- .github/workflows/dynamics-helper-build.yml
- .github/workflows/docker-build-template.yml

jobs:
build:
permissions:
contents: read
packages: write
id-token: write
uses: ./.github/workflows/docker-build-template.yml
with:
IMAGE_CONTEXT: src
IMAGE_FILE: src/dynamics.dockerfile
IMAGE_NAME: ${{ github.repository }}/dynamics-helper
REGISTRY: ghcr.io
secrets:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
21 changes: 0 additions & 21 deletions .github/workflows/dynamics-main-cd.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/dynamics-pr-ci.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/github-runner-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
push:
branches: ["main"]
paths:
- tools/github-runner
- tools/github-runner/**
- .github/workflows/github-runner-build.yml
- .github/workflows/docker-build-template.yml

pull_request:
branches: ["main"]
paths:
- tools/github-runner
- tools/github-runner/**
- .github/workflows/github-runner-build.yml
- .github/workflows/docker-build-template.yml

Expand All @@ -30,4 +30,3 @@ jobs:
secrets:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

37 changes: 37 additions & 0 deletions .github/workflows/licensing-portal-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Licensing Portal Build

on:
push:
branches:
- main
paths:
- src/**
- '!src/Spd.Presentation.Dynamics/**'
- '!src/Spd.Presentation.Screening/**'
- .github/workflows/licensing-portal-build.yml
- .github/workflows/docker-build-template.yml

pull_request:
branches: ["main"]
paths:
- src/**
- '!src/Spd.Presentation.Dynamics/**'
- '!src/Spd.Presentation.Screening/**'
- .github/workflows/licensing-portal-build.yml
- .github/workflows/docker-build-template.yml

jobs:
build:
permissions:
contents: read
packages: write
id-token: write
uses: ./.github/workflows/docker-build-template.yml
with:
IMAGE_CONTEXT: src
IMAGE_FILE: src/licensing-portal.dockerfile
IMAGE_NAME: ${{ github.repository }}/licensing-portal
REGISTRY: ghcr.io
secrets:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
17 changes: 0 additions & 17 deletions .github/workflows/licensing-portal-cd-dev-temp.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/licensing-portal-cd-test-env.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/licensing-portal-main-cd .yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/licensing-portal-pr-ci.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/screening-portal-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Screening Protal Build
on:
push:
branches:
- main
paths:
- src/**
- "!src/Spd.Presentation.Dynamics/**"
- "!src/Spd.Presentation.Licensing/**"
- .github/workflows/screening-portal-build.yml
- .github/workflows/docker-build-template.yml

pull_request:
branches: ["main"]
paths:
- src/**
- "!src/Spd.Presentation.Dynamics/**"
- "!src/Spd.Presentation.Screening/**"
- .github/workflows/screening-portal-build.yml
- .github/workflows/docker-build-template.yml

jobs:
build:
permissions:
contents: read
packages: write
id-token: write
uses: ./.github/workflows/docker-build-template.yml
with:
IMAGE_CONTEXT: src
IMAGE_FILE: src/screening-portal.dockerfile
IMAGE_NAME: ${{ github.repository }}/screening-portal
REGISTRY: ghcr.io
secrets:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
17 changes: 0 additions & 17 deletions .github/workflows/screening-portal-cd-dev-temp.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/screening-portal-cd-test-env.yml

This file was deleted.

Loading

0 comments on commit e511b22

Please sign in to comment.