From 1f776bc685dc0fbb51688e0af7b5f7f71cac7ed1 Mon Sep 17 00:00:00 2001 From: James Smith Date: Sat, 6 Mar 2021 18:55:52 +0000 Subject: [PATCH] try to fix the environment variables for versioning --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d2284948..f66686ed5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,15 +2,12 @@ FROM ruby:3.0-alpine AS build RUN apk add --no-cache tzdata alpine-sdk postgresql-dev nodejs yarn python2 -ARG VAN_DAM_GIT_REF -ARG VAN_DAM_GIT_SHA - ENV PORT 3214 ENV RACK_ENV production ENV NODE_ENV production ENV RAILS_SERVE_STATIC_FILES true -ENV VAN_DAM_GIT_REF $VAN_DAM_GIT_REF -ENV VAN_DAM_GIT_SHA $VAN_DAM_GIT_SHA +ENV VAN_DAM_GIT_REF $CI_REF_NAME +ENV VAN_DAM_GIT_SHA $CI_SHA_SHORT WORKDIR /usr/src/app