Skip to content

Commit 9328a78

Browse files
fix: add env variable DEFAULT_CONFTEST_VERSION to dockerfile so it's available at runtime (runatlantis#5997)
Signed-off-by: Nicolas Vanheuverzwijn <[email protected]>
1 parent bc4dc25 commit 9328a78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ RUN apk add --no-cache \
208208
gcompat=${GCOMPAT_VERSION} \
209209
coreutils-env=${COREUTILS_ENV_VERSION}
210210

211+
ARG DEFAULT_CONFTEST_VERSION
212+
ENV DEFAULT_CONFTEST_VERSION=${DEFAULT_CONFTEST_VERSION}
213+
211214
# Set the entry point to the atlantis user and run the atlantis command
212215
USER atlantis
213216
ENTRYPOINT ["docker-entrypoint.sh"]
@@ -237,6 +240,9 @@ COPY --from=deps /usr/bin/git-lfs /usr/bin/git-lfs
237240
# copy docker-entrypoint.sh
238241
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
239242

243+
ARG DEFAULT_CONFTEST_VERSION
244+
ENV DEFAULT_CONFTEST_VERSION=${DEFAULT_CONFTEST_VERSION}
245+
240246
# Set the entry point to the atlantis user and run the atlantis command
241247
USER atlantis
242248
ENTRYPOINT ["docker-entrypoint.sh"]

0 commit comments

Comments
 (0)