Add missing pull when PLEROMA_VERSION is a branch

This commit is contained in:
sn0w 2019-08-28 18:57:19 +02:00
parent 8917b56fb0
commit d46bc718c1

View File

@ -65,10 +65,14 @@ ARG __CACHE_TAG
ENV __CACHE_TAG $__CACHE_TAG
# Fetch changes, checkout
# Only pull if the version-string happens to be a branch
ARG PLEROMA_VERSION
RUN \
git fetch --all && \
git checkout $PLEROMA_VERSION
git checkout $PLEROMA_VERSION && \
if git show-ref --quiet "refs/heads/$PLEROMA_VERSION"; then \
git pull --rebase --autostash; \
fi
# Precompile
RUN \