mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-31 19:27:09 +01:00
Fixes for download url
This commit is contained in:
@@ -13,8 +13,7 @@ ARG FILENAME=react-invoiceninja.tar
|
|||||||
RUN set -eux; apk add curl unzip grep
|
RUN set -eux; apk add curl unzip grep
|
||||||
|
|
||||||
# Fetch the latest release information
|
# Fetch the latest release information
|
||||||
RUN release_info=$(curl -s "https://api.github.com/repos/${REPOSITORY}/releases/latest") && \
|
RUN download_url=$(curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | grep -o '"browser_download_url": "[^"]*react-invoiceninja.tar"' | cut -d '"' -f 4) && \
|
||||||
download_url=$(echo "$release_info" | grep -o '"browser_download_url": "[^"]*'${FILENAME}'"' | cut -d '"' -f 4) && \
|
|
||||||
curl -LJO "$download_url" -o "/tmp/ninja.tar"
|
curl -LJO "$download_url" -o "/tmp/ninja.tar"
|
||||||
|
|
||||||
# Extract Invoice Ninja
|
# Extract Invoice Ninja
|
||||||
|
|||||||
Reference in New Issue
Block a user