From e98e86d37f3bdbeb44643ea973ca7ebf773fd02a Mon Sep 17 00:00:00 2001 From: axel-kah Date: Sun, 7 Jul 2024 15:45:57 +0200 Subject: [PATCH] ci: simplifies Dockerfiles by using latest permalink --- Dockerfile-CI.Dockerfile | 8 ++------ Dockerfile-CI.alpine.Dockerfile | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/Dockerfile-CI.Dockerfile b/Dockerfile-CI.Dockerfile index 1f347475b2..6e87799354 100644 --- a/Dockerfile-CI.Dockerfile +++ b/Dockerfile-CI.Dockerfile @@ -9,14 +9,10 @@ RUN apt-get update \ wget \ && case $(dpkg --print-architecture) in \ "amd64") \ - wget -q -O - "$(wget -q -O- https://api.github.com/repos/lycheeverse/lychee/releases/latest \ - | jq -r '.assets[].browser_download_url' \ - | grep x86_64-unknown-linux-gnu)" | tar -xz lychee \ + wget -q -O - https://github.com/lycheeverse/lychee/releases/latest/download/lychee-x86_64-unknown-linux-gnu.tar.gz | tar -xz lychee \ ;; \ "arm64") \ - wget -q -O - "$(wget -q -O- https://api.github.com/repos/lycheeverse/lychee/releases/latest \ - | jq -r '.assets[].browser_download_url' \ - | grep aarch64-unknown-linux-gnu)" | tar -xz lychee \ + wget -q -O - https://github.com/lycheeverse/lychee/releases/latest/download/lychee-aarch64-unknown-linux-gnu.tar.gz | tar -xz lychee \ ;; \ esac \ && chmod +x lychee diff --git a/Dockerfile-CI.alpine.Dockerfile b/Dockerfile-CI.alpine.Dockerfile index 95cf54f816..8394756ba9 100644 --- a/Dockerfile-CI.alpine.Dockerfile +++ b/Dockerfile-CI.alpine.Dockerfile @@ -5,14 +5,10 @@ RUN apk update \ && apk add --no-cache ca-certificates jq wget \ && case $(arch) in \ "x86_64") \ - wget -4 -q -O - "$(wget -4 -q -O- https://api.github.com/repos/lycheeverse/lychee/releases/latest \ - | jq -r '.assets[].browser_download_url' \ - | grep x86_64-unknown-linux-musl)" | tar -xz lychee \ + wget -4 -q -O - https://github.com/lycheeverse/lychee/releases/latest/download/lychee-x86_64-unknown-linux-musl.tar.gz | tar -xz lychee \ ;; \ "aarch64") \ - wget -4 -q -O - "$(wget -4 -q -O- https://api.github.com/repos/lycheeverse/lychee/releases/latest \ - | jq -r '.assets[].browser_download_url' \ - | grep arm-unknown-linux-musleabihf)" | tar -xz lychee \ + wget -4 -q -O - https://github.com/lycheeverse/lychee/releases/latest/download/lychee-arm-unknown-linux-musleabihf.tar.gz | tar -xz lychee \ ;; \ esac \ && chmod +x lychee