fix: docker build condition for v14

This commit is contained in:
Revant Nandgaonkar 2022-08-02 05:40:13 +05:30
parent 9388f75faf
commit fac0ce5137
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ ARG PAYMENTS_VERSION=develop
ARG PAYMENTS_REPO=https://github.com/frappe/payments
ARG ERPNEXT_VERSION
ARG ERPNEXT_REPO=https://github.com/frappe/erpnext
RUN if [ "$ERPNEXT_VERSION" = "v14"* ] || [ "$ERPNEXT_VERSION" = "develop" ]; then \
RUN if [ -z "${ERPNEXT_VERSION##*v14*}" ] || [ "$ERPNEXT_VERSION" = "develop" ]; then \
git clone --depth 1 -b ${PAYMENTS_VERSION} ${PAYMENTS_REPO} apps/payments && install-app payments; \
fi \
&& git clone --depth 1 -b ${ERPNEXT_VERSION} ${ERPNEXT_REPO} apps/erpnext \

View file

@ -59,7 +59,7 @@ ARG PAYMENTS_REPO=https://github.com/frappe/payments
ARG ERPNEXT_VERSION
ARG ERPNEXT_REPO=https://github.com/frappe/erpnext
RUN --mount=type=cache,target=/root/.cache/pip \
if [ "$ERPNEXT_VERSION" = "v14"* ] || [ "$ERPNEXT_VERSION" = "develop" ]; then \
if [ -z "${ERPNEXT_VERSION##*v14*}" ] || [ "$ERPNEXT_VERSION" = "develop" ]; then \
git clone --depth 1 -b ${PAYMENTS_VERSION} ${PAYMENTS_REPO} apps/payments && install-app payments; \
fi \
&& git clone --depth 1 -b ${ERPNEXT_VERSION} ${ERPNEXT_REPO} apps/erpnext \