Skip to content

Commit

Permalink
Allow commit/branch to be build
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Grutschus committed Jan 28, 2025
1 parent dc13b8a commit 7e5ae89
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ecs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ LABEL maintainer="ProcessOne <[email protected]>" \
RUN git clone https://github.com/processone/ejabberd.git
WORKDIR /ejabberd
COPY vars.config .
RUN echo '{vsn, "'${VERSION}'.0"}.' >>vars.config
COPY config.exs config/
COPY rel/*exs rel/
RUN git checkout ${VERSION/latest/HEAD} \
\
&& if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+$ ]]; then \
echo '{vsn, "'"$VERSION.0"'"}.' >> vars.config; \
else \
echo '{vsn, "0.0.0"}.' >> vars.config; \
fi \
\
&& mix deps.get \
&& (cd deps/eimp; ./configure)

Expand Down

0 comments on commit 7e5ae89

Please sign in to comment.