mirror of
https://memleak.eu/sn0w/pleroma-docker.git
synced 2024-12-22 01:38:47 -05:00
Add missing pull when PLEROMA_VERSION is a branch
This commit is contained in:
parent
8917b56fb0
commit
d46bc718c1
@ -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…
Reference in New Issue
Block a user