Skip to content

Commit 886719e

Browse files
committed
#RI-6158 - Add $ENV to docker build
1 parent 19aa663 commit 886719e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pipeline-build-docker.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- name: Build sources
2323
run: ./.circleci/build/build.sh
2424

25+
# todo: matrix
2526
- name: Build web archives
2627
run: |
2728
unset npm_config_keytar_binary_host_mirror
@@ -39,14 +40,15 @@ jobs:
3940
PLATFORM=win32 ARCH=x64 .circleci/build/build_modules.sh
4041
- name: Build Docker (x64, arm64)
4142
env:
43+
ENV: ${{ vars.ENV }}
4244
RI_SEGMENT_WRITE_KEY: ${{ secrets.RI_SEGMENT_WRITE_KEY }}
4345
run: |
4446
# Build alpine x64 image
4547
docker buildx build \
4648
-f .circleci/build/build.Dockerfile \
4749
--platform linux/amd64 \
4850
--build-arg DIST=release/web/Redis-Insight-web-linux-musl.x64.tar.gz \
49-
--build-arg NODE_ENV="$env" \
51+
--build-arg NODE_ENV="$ENV" \
5052
--build-arg RI_SEGMENT_WRITE_KEY="$RI_SEGMENT_WRITE_KEY" \
5153
-t redisinsight:amd64 \
5254
.
@@ -56,7 +58,7 @@ jobs:
5658
-f .circleci/build/build.Dockerfile \
5759
--platform linux/arm64 \
5860
--build-arg DIST=release/web/Redis-Insight-web-linux-musl.arm64.tar.gz \
59-
--build-arg NODE_ENV="$env" \
61+
--build-arg NODE_ENV="$ENV" \
6062
--build-arg RI_SEGMENT_WRITE_KEY="$RI_SEGMENT_WRITE_KEY" \
6163
-t redisinsight:arm64 \
6264
.

0 commit comments

Comments
 (0)