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
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
npm ci
npm run test:cov
dir: ${{ matrix.dir }}
node_version: "20"
node_version: "22"
sonar_args: >
-Dsonar.exclusions=**/coverage/**,**/node_modules/**,**/*spec.ts
-Dsonar.organization=bcgov-sonarcloud
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
deploys:
name: Deploys
needs: [builds]
uses: bcgov/quickstart-openshift-helpers/.github/workflows/.deployer.yml@v0.4.1
uses: bcgov/quickstart-openshift-helpers/.github/workflows/.deployer.yml@v0.5.0
secrets:
oc_namespace: ${{ secrets.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
Expand Down
5 changes: 3 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Build
FROM node:20.14.0-bullseye-slim AS build
FROM node:22.2.0-slim AS build

# Copy, build static files; see .dockerignore for exclusions
WORKDIR /app
COPY . ./
ENV PRISMA_CLI_BINARY_TARGETS debian-openssl-3.0.x
RUN npm run deploy

# Deploy using minimal Distroless image
FROM gcr.io/distroless/nodejs20-debian11:nonroot
FROM gcr.io/distroless/nodejs22-debian12:nonroot
ENV NODE_ENV production

# Copy app and dependencies
Expand Down
2 changes: 1 addition & 1 deletion backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
generator client {
provider = "prisma-client-js"
previewFeatures = ["metrics"]
binaryTargets = ["native", "debian-openssl-3.0.x"]
}

datasource db {
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
ports: ["5432:5432"]

migrations:
image: flyway/flyway:9-alpine
image: flyway/flyway:10-alpine
container_name: migrations
command: info migrate info
volumes: ["./migrations/sql:/flyway/sql:ro"]
Expand Down Expand Up @@ -58,7 +58,7 @@ services:
environment:
<<: *postgres-vars
NODE_ENV: development
image: node:20-bullseye
image: node:22
ports: ["3001:3000"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api"]
Expand Down
2 changes: 1 addition & 1 deletion migrations/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM flyway/flyway:9.22-alpine
FROM flyway/flyway:10-alpine

# Copy migrations
COPY ./sql /flyway/sql
Expand Down