Skip to content

Commit 7e93f07

Browse files
author
Fabian Grutschus
committed
Allow commit/branch to be build
1 parent dc13b8a commit 7e93f07

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ecs/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ LABEL maintainer="ProcessOne <[email protected]>" \
1414
RUN git clone https://github.com/processone/ejabberd.git
1515
WORKDIR /ejabberd
1616
COPY vars.config .
17-
RUN echo '{vsn, "'${VERSION}'.0"}.' >>vars.config
1817
COPY config.exs config/
1918
COPY rel/*exs rel/
2019
RUN git checkout ${VERSION/latest/HEAD} \
20+
\
21+
&& if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+$ ]]; then \
22+
echo '{vsn, "'"$VERSION.0"'"}.' >> vars.config; \
23+
else \
24+
echo '{vsn, "0.0.0"}.' >> vars.config; \
25+
fi \
26+
\
2127
&& mix deps.get \
2228
&& (cd deps/eimp; ./configure)
2329

0 commit comments

Comments
 (0)