mirror of
https://memleak.eu/sn0w/pleroma-docker.git
synced 2024-12-22 05:58:49 -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
|
ENV __CACHE_TAG $__CACHE_TAG
|
||||||
|
|
||||||
# Fetch changes, checkout
|
# Fetch changes, checkout
|
||||||
|
# Only pull if the version-string happens to be a branch
|
||||||
ARG PLEROMA_VERSION
|
ARG PLEROMA_VERSION
|
||||||
RUN \
|
RUN \
|
||||||
git fetch --all && \
|
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
|
# Precompile
|
||||||
RUN \
|
RUN \
|
||||||
|
Loading…
Reference in New Issue
Block a user