Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,15 @@ on:
- develop/mchintha
- grad-hotfix

permissions:
contents: read

jobs:
openshift-ci-cd:
permissions:
contents: read
packages: write
issues: write
name: Build and deploy to OpenShift DEV from developer branch
runs-on: ubuntu-22.04
environment: dev
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build.from.main.branch.deploy.to.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,15 @@ env:
on:
workflow_dispatch:

permissions:
contents: read

jobs:
openshift-ci-cd:
permissions:
contents: read
packages: write
issues: write
name: Build and deploy to OpenShift DEV
runs-on: ubuntu-22.04
environment: dev
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build.from.release.branch.deploy.to.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,15 @@ on:
- 'api/**'
- 'tools/**'

permissions:
contents: read

jobs:
openshift-ci-cd:
permissions:
contents: read
packages: write
issues: write
name: Build and deploy to OpenShift DEV from release branch
runs-on: ubuntu-22.04
environment: dev
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/create_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ on:
description: 'Version Number'
required: true

permissions:
contents: read

jobs:
tag_image:
permissions:
contents: write
name: Tag Image
runs-on: ubuntu-22.04
environment: dev
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/deploy.to.openshift.dev.and.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ on:
- 'api/**'
- 'tools/**'

permissions:
contents: read

jobs:
build-and-deploy-dev:
permissions:
contents: read
packages: write
name: Build and deploy to OpenShift DEV
runs-on: ubuntu-22.04
environment: dev
Expand Down Expand Up @@ -243,6 +249,9 @@ jobs:
oc rollout status deployment/${{ env.SPRING_BOOT_IMAGE_NAME }}

zap-scan:
permissions:
contents: read
issues: write
name: Zap Scan
needs: build-and-deploy-dev
runs-on: ubuntu-22.04
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy_latest_to_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ on:
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
workflow_dispatch:

permissions:
contents: read

jobs:
deploy-to-openshift-test:
name: Deploy to OpenShift TEST
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ on:
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
workflow_dispatch:

permissions:
contents: read

jobs:
deploy-to-openshift-prod:
name: Deploy to OpenShift PROD
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ on:
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
workflow_dispatch:

permissions:
contents: read

jobs:
deploy-to-openshift-test:
name: Deploy to OpenShift TEST
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/on.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ on:
- 'api/**'
- 'Dockerfile'
- '.github/workflows/*'
permissions:
contents: read

jobs:
quality_profile:
permissions:
contents: read
pull-requests: read

runs-on: ubuntu-22.04

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM artifacts.developer.gov.bc.ca/docker-remote/maven:3.9.9-amazoncorretto-21-alpine AS maven

# Use the timezone-patched JDK for both compilation and the final runtime.
FROM artifacts.developer.gov.bc.ca/docker-remote/amazoncorretto:21.0.12-alpine3.23 AS build
# Use the security-patched JDK for both compilation and the final runtime.
FROM artifacts.developer.gov.bc.ca/docker-remote/amazoncorretto:21.0.13-alpine3.23 AS build
COPY --from=maven /usr/share/maven /usr/share/maven
ENV PATH="/usr/share/maven/bin:${PATH}"
WORKDIR /workspace/app
Expand All @@ -11,7 +11,7 @@ COPY api/src src
RUN mvn package -DskipTests
RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)

FROM artifacts.developer.gov.bc.ca/docker-remote/amazoncorretto:21.0.12-alpine3.23
FROM artifacts.developer.gov.bc.ca/docker-remote/amazoncorretto:21.0.13-alpine3.23
RUN adduser -D -h /home/spring -s /bin/sh spring && mkdir -p /logs && chown -R spring:spring /logs && chmod 755 /logs
USER spring
VOLUME /tmp
Expand Down
Loading