Browse Source

Add missing pull when PLEROMA_VERSION is a branch

healthchecks
sn0w 4 years ago
parent
commit
d46bc718c1
  1. 6
      Dockerfile

6
Dockerfile

@ -65,10 +65,14 @@ ARG __CACHE_TAG @@ -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 \

Loading…
Cancel
Save