mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-10-23 04:51:58 +00:00
dockerfile: Check out during clone, so remote refnames work.
Otherwise, ZULIP_GIT_REF has to be a `refs/remotes/origin/foo`-style refname.
This commit is contained in:
committed by
Alex Vandiver
parent
e49a16829d
commit
4926213cab
@@ -29,9 +29,8 @@ WORKDIR /home/zulip
|
|||||||
ARG ZULIP_GIT_URL=https://github.com/zulip/zulip.git
|
ARG ZULIP_GIT_URL=https://github.com/zulip/zulip.git
|
||||||
ARG ZULIP_GIT_REF=11.2
|
ARG ZULIP_GIT_REF=11.2
|
||||||
|
|
||||||
RUN git clone "$ZULIP_GIT_URL" && \
|
RUN git clone "$ZULIP_GIT_URL" -b "$ZULIP_GIT_REF" && \
|
||||||
cd zulip && \
|
cd zulip
|
||||||
git checkout -b current "$ZULIP_GIT_REF"
|
|
||||||
|
|
||||||
WORKDIR /home/zulip/zulip
|
WORKDIR /home/zulip/zulip
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user