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

Commit

Permalink
Merge pull request #5 from linuxserver-labs/APP_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad authored Jun 5, 2022
2 parents c92a006 + 32bd518 commit 5b4b234
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.13
# set version label
ARG BUILD_DATE
ARG VERSION
ARG INVOICENINJA_RELEASE
ARG APP_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="alex-phillips"

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

0 comments on commit 5b4b234

Please sign in to comment.