Skip to content

Commit

Permalink
use bash
Browse files Browse the repository at this point in the history
  • Loading branch information
mredolatti committed Feb 22, 2024
1 parent a0e4d4a commit 3f5eb7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/sidecar.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ RUN apt install -y build-essential ca-certificates python3 git
WORKDIR /splitd
COPY . .

RUN export GITHUB_SHA="${COMMIT_SHA}" && \
RUN export GITHUB_SHA="${COMMIT_SHA}" && bash -c '\
if [[ "${FIPS_MODE}" = "enabled" ]]; \
then echo "building in fips mode"; make clean splitd-fips splitd.yaml.tpl EXTRA_BUILD_ARGS="${EXTRA_BUILD_ARGS}"; mv split-sync-fips split-sync; \
else echo "building in standard mode"; make clean splitd splitd.yaml.tpl EXTRA_BUILD_ARGS="${EXTRA_BUILD_ARGS}"; \
fi
fi'

# ----- Runner image

Expand Down

0 comments on commit 3f5eb7e

Please sign in to comment.