Skip to content

Commit cdd1cf9

Browse files
committed
build: add ARG RELEASE_VERSION
1 parent e44c74b commit cdd1cf9

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

apps/gateway/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM node:lts-alpine AS base
22
WORKDIR /app
3+
ARG RELEASE_VERSION
34
ENV GATEWAY_DATABASE_URL=file:/app/gateway.db
45
ENV PNPM_HOME="/pnpm"
56
ENV PATH="$PNPM_HOME:$PATH"

apps/web/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM node:lts-alpine AS base
2+
ARG RELEASE_VERSION
23
WORKDIR /app
34
ENV PNPM_HOME="/pnpm"
45
ENV PATH="$PNPM_HOME:$PATH"

docker-compose.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ services:
4646
gateway:
4747
image: ghcr.io/douglasneuroinformatics/open-data-capture-gateway:${RELEASE_CHANNEL}
4848
build:
49+
args:
50+
- RELEASE_VERSION
4951
context: .
5052
dockerfile: ./apps/gateway/Dockerfile
5153
ports:
@@ -59,6 +61,8 @@ services:
5961
web:
6062
image: ghcr.io/douglasneuroinformatics/open-data-capture-web:${RELEASE_CHANNEL}
6163
build:
64+
args:
65+
- RELEASE_VERSION
6266
context: .
6367
dockerfile: ./apps/web/Dockerfile
6468
environment:

0 commit comments

Comments
 (0)