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
22 changes: 22 additions & 0 deletions .github/workflows/container-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Container validation
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
app: [api, web]
steps:
- uses: actions/checkout@v6
- name: Build the Linux application image
run: docker build --platform linux/amd64 --tag metabridge-${{ matrix.app }}:check apps/${{ matrix.app }}
- name: Verify the API native runtime
if: matrix.app == 'api'
run: test "$(docker run --rm --entrypoint node metabridge-api:check --version)" = v22.23.4
4 changes: 2 additions & 2 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---- build stage ----
FROM node:20-alpine AS build
FROM node:22.23.4-alpine@sha256:fe4f6d74e20370acb04ad889077d14d0f64a9c8ea6a42bc60cddf1e844699914 AS build
WORKDIR /app

COPY package*.json ./
Expand All @@ -8,7 +8,7 @@ COPY . .
RUN npm run build

# ---- runtime stage ----
FROM node:20-alpine
FROM node:22.23.4-alpine@sha256:fe4f6d74e20370acb04ad889077d14d0f64a9c8ea6a42bc60cddf1e844699914
WORKDIR /app
ENV NODE_ENV=production

Expand Down
2 changes: 1 addition & 1 deletion apps/web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---- build stage ----
FROM node:20-alpine AS build
FROM node:22.23.4-alpine@sha256:fe4f6d74e20370acb04ad889077d14d0f64a9c8ea6a42bc60cddf1e844699914 AS build
WORKDIR /app

ARG VITE_API_URL=""
Expand Down
Loading