From 0022f3998c2f5488bb4e73305ce5a296c6213be2 Mon Sep 17 00:00:00 2001 From: Alex Phillips Date: Wed, 16 Feb 2022 13:02:27 -0500 Subject: [PATCH] build from release, not commit --- Dockerfile | 4 ++-- Dockerfile.aarch64 | 4 ++-- Dockerfile.armhf | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c4bf8a..8a7c43e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,8 +26,8 @@ RUN \ echo "**** install budge ****" && \ mkdir -p /app/budge && \ if [ -z ${BUDGE_RELEASE+x} ]; then \ - BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/commits/main" \ - | awk '/sha/{print $4;exit}' FS='[""]'); \ + BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/releases" \ + | jq -r '.[0] | .tag_name'); \ fi && \ curl -o \ /tmp/budge.tar.gz -L \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 8c4bf8a..8a7c43e 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -26,8 +26,8 @@ RUN \ echo "**** install budge ****" && \ mkdir -p /app/budge && \ if [ -z ${BUDGE_RELEASE+x} ]; then \ - BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/commits/main" \ - | awk '/sha/{print $4;exit}' FS='[""]'); \ + BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/releases" \ + | jq -r '.[0] | .tag_name'); \ fi && \ curl -o \ /tmp/budge.tar.gz -L \ diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 35890ac..464879d 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -26,8 +26,8 @@ RUN \ echo "**** install budge ****" && \ mkdir -p /app/budge && \ if [ -z ${BUDGE_RELEASE+x} ]; then \ - BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/commits/main" \ - | awk '/sha/{print $4;exit}' FS='[""]'); \ + BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/releases" \ + | jq -r '.[0] | .tag_name'); \ fi && \ curl -o \ /tmp/budge.tar.gz -L \