diff options
author | Anatoli Babenia <anatoli@rainforce.org> | 2022-09-27 21:40:40 +0300 |
---|---|---|
committer | Sarah German <sgerman@gitlab.com> | 2022-09-27 21:40:40 +0300 |
commit | cbb96ce72e2ef4b8220c621244e742f97fc90cc0 (patch) | |
tree | 2b1fa168bda3258fc647016e414fc9c51e271465 /dockerfiles/single.Dockerfile | |
parent | 31bb991e83baf69bb576c7d6e73a24ef552e119e (diff) |
Replace `sed` with `--build-arg` for Dockerfile
Diffstat (limited to 'dockerfiles/single.Dockerfile')
-rw-r--r-- | dockerfiles/single.Dockerfile | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/dockerfiles/single.Dockerfile b/dockerfiles/single.Dockerfile index 6aa88c17..d32e8537 100644 --- a/dockerfiles/single.Dockerfile +++ b/dockerfiles/single.Dockerfile @@ -24,15 +24,10 @@ FROM ruby:2.7.6-alpine3.16 AS builder # Copy minifier binary from the minifier stage COPY --from=minifier /minify /usr/local/bin/minify -# Set to the version for this archive (must match the branch name) -ENV VER=X.Y -ENV CI_COMMIT_REF_NAME=X.Y - -# Replace the versions to match the stable branches of the upstream projects -ENV BRANCH_EE=X-Y-stable-ee -ENV BRANCH_OMNIBUS=X-Y-stable -ENV BRANCH_RUNNER=X-Y-stable -ENV BRANCH_CHARTS=W-Z-stable +# Set versions as build args to fetch corresponding branches +ARG VER + +ENV CI_COMMIT_REF_NAME=$VER # Set NANOC_ENV to production ENV NANOC_ENV=production |