Skip to content
This repository was archived by the owner on Apr 28, 2024. It is now read-only.

Commit 5b4b234

Browse files
authored
Merge pull request #5 from linuxserver-labs/APP_VERSION
2 parents c92a006 + 32bd518 commit 5b4b234

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.13
33
# set version label
44
ARG BUILD_DATE
55
ARG VERSION
6-
ARG INVOICENINJA_RELEASE
6+
ARG APP_VERSION
77
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
88
LABEL maintainer="alex-phillips"
99

@@ -36,12 +36,12 @@ RUN \
3636
php7-zip && \
3737
echo "**** install invoiceninja ****" && \
3838
mkdir -p /app/invoiceninja && \
39-
if [ -z ${INVOICENINJA_RELEASE} ]; then \
40-
INVOICENINJA_RELEASE=$(curl -s https://api.github.com/repos/invoiceninja/invoiceninja/releases | jq -rc 'limit(1;.[] | select( .target_commitish | match("v5-stable"))) .tag_name'); \
39+
if [ -z ${APP_VERSION} ]; then \
40+
APP_VERSION=$(curl -s https://api.github.com/repos/invoiceninja/invoiceninja/releases | jq -rc 'limit(1;.[] | select( .target_commitish | match("v5-stable"))) .tag_name'); \
4141
fi && \
4242
curl -o \
4343
/tmp/invoiceninja.tar.gz -L \
44-
"https://github.com/invoiceninja/invoiceninja/archive/${INVOICENINJA_RELEASE}.tar.gz" && \
44+
"https://github.com/invoiceninja/invoiceninja/archive/${APP_VERSION}.tar.gz" && \
4545
tar xf \
4646
/tmp/invoiceninja.tar.gz -C \
4747
/app/invoiceninja/ --strip-components=1 && \

0 commit comments

Comments
 (0)