Skip to content

Commit 1707884

Browse files
committed
get version from build env
1 parent 02a7bad commit 1707884

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ FROM node:10-alpine
22

33
RUN apk add --no-cache openssl
44

5-
RUN npm install -g solid-server@5.2.2
5+
ARG SOLID_SERVER_VERSION=latest
6+
RUN npm install -g solid-server@${SOLID_SERVER_VERSION}
67

78
# image configuration
89
ENV SOLID_HOME=/opt/solid

src/hooks/build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
docker build --build-arg SOLID_SERVER_VERSION=${SOURCE_BRANCH} -f Dockerfile -t $IMAGE_NAME .

0 commit comments

Comments
 (0)