Skip to content

Commit

Permalink
Dockerfle: fixed artifacts copy (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafie committed Feb 28, 2021
1 parent efbfeaf commit f722f2d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ ARG OS=debian:buster-slim
# ARCH=x64|arm64v8|arm32v7
ARG ARCH=x64

ARG PACK=0
ARG TEST=0

#----------------------------------------------------------------------------------------------
FROM redisfab/redis:${REDIS_VER}-${ARCH}-${OSNICK} AS redis
# Build based on ${OS} (i.e., 'builder'), redis files are copies from 'redis'
Expand Down Expand Up @@ -45,13 +48,14 @@ ENV LC_ALL=en_US.UTF-8

RUN bash -l -c make -j`nproc`

ARG TEST=0
ARG PACK=0
ARG PACK
ARG TEST

RUN set -ex ;\
if [ "$TEST" = "1" ]; then bash -l -c "TEST= make test"; fi
if [ "$TEST" = "1" ]; then bash -l -c "TEST= make test"; fi
RUN set -ex ;\
if [ "$PACK" = "1" ]; then bash -l -c "make package"; fi
mkdir -p bin/artifacts ;\
if [ "$PACK" = "1" ]; then bash -l -c "make package"; fi

#----------------------------------------------------------------------------------------------
FROM redisfab/redis:${REDIS_VER}-${ARCH}-${OSNICK}
Expand Down

0 comments on commit f722f2d

Please sign in to comment.