From 3c3ef72522f4abe6d57733ee1a465b34c1bea888 Mon Sep 17 00:00:00 2001 From: klu909 <55161078+klu909@users.noreply.github.com> Date: Mon, 19 Sep 2022 17:36:17 -0700 Subject: [PATCH] fix: update github link (#442) --- Dockerfile | 32 ++++++++++++++++---------------- Dockerfile.local | 14 +++++++------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/Dockerfile b/Dockerfile index 604de01..1e6997c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,67 +51,67 @@ RUN set -x \ FROM base-${TARGETARCH} AS final RUN set -x \ # Download Launcher - && wget -q -O - https://github.com/screwdriver-cd/launcher/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/launcher/releases/latest \ | egrep -o "/screwdriver-cd/launcher/releases/download/v[0-9.]*/launcher_${TARGETOS}_${TARGETARCH}" \ | sed -e "s/\/screwdriver-cd\/\([a-zA-Z-]*\)\/releases\/download\/\(v[0-9.]*\)\/launcher_${TARGETOS}_${TARGETARCH}/\1 \2/" >> tool-versions \ - && wget -q -O - https://github.com/screwdriver-cd/launcher/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/launcher/releases/latest \ | egrep -o "/screwdriver-cd/launcher/releases/download/v[0-9.]*/launcher_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O launch \ && chmod +x launch \ # Download Log Service - && wget -q -O - https://github.com/screwdriver-cd/log-service/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/log-service/releases/latest \ | egrep -o "/screwdriver-cd/log-service/releases/download/v[0-9.]*/log-service_${TARGETOS}_${TARGETARCH}" \ | sed -e "s/\/screwdriver-cd\/\([a-zA-Z-]*\)\/releases\/download\/\(v[0-9.]*\)\/log-service_${TARGETOS}_${TARGETARCH}/\1 \2/" >> tool-versions \ - && wget -q -O - https://github.com/screwdriver-cd/log-service/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/log-service/releases/latest \ | egrep -o "/screwdriver-cd/log-service/releases/download/v[0-9.]*/log-service_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O logservice \ && chmod +x logservice \ # Download Meta CLI - && wget -q -O - https://github.com/screwdriver-cd/meta-cli/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/meta-cli/releases/latest \ | egrep -o "/screwdriver-cd/meta-cli/releases/download/v[0-9.]*/meta-cli_${TARGETOS}_${TARGETARCH}" \ | sed -e "s/\/screwdriver-cd\/\([a-zA-Z-]*\)\/releases\/download\/\(v[0-9.]*\)\/meta-cli_${TARGETOS}_${TARGETARCH}/\1 \2/" >> tool-versions \ - && wget -q -O - https://github.com/screwdriver-cd/meta-cli/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/meta-cli/releases/latest \ | egrep -o "/screwdriver-cd/meta-cli/releases/download/v[0-9.]*/meta-cli_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O meta \ && chmod +x meta \ # Download sd-step - && wget -q -O - https://github.com/screwdriver-cd/sd-step/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/sd-step/releases/latest \ | egrep -o "/screwdriver-cd/sd-step/releases/download/v[0-9.]*/sd-step_${TARGETOS}_${TARGETARCH}" \ | sed -e "s/\/screwdriver-cd\/\([a-zA-Z-]*\)\/releases\/download\/\(v[0-9.]*\)\/sd-step_${TARGETOS}_${TARGETARCH}/\1 \2/" >> tool-versions \ - && wget -q -O - https://github.com/screwdriver-cd/sd-step/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/sd-step/releases/latest \ | egrep -o "/screwdriver-cd/sd-step/releases/download/v[0-9.]*/sd-step_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O sd-step \ && chmod +x sd-step \ # Download sd-cmd - && wget -q -O - https://github.com/screwdriver-cd/sd-cmd/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/sd-cmd/releases/latest \ | egrep -o "/screwdriver-cd/sd-cmd/releases/download/v[0-9.]*/sd-cmd_${TARGETOS}_${TARGETARCH}" \ | sed -e "s/\/screwdriver-cd\/\([a-zA-Z-]*\)\/releases\/download\/\(v[0-9.]*\)\/sd-cmd_${TARGETOS}_${TARGETARCH}/\1 \2/" >> tool-versions \ - && wget -q -O - https://github.com/screwdriver-cd/sd-cmd/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/sd-cmd/releases/latest \ | egrep -o "/screwdriver-cd/sd-cmd/releases/download/v[0-9.]*/sd-cmd_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O sd-cmd \ && chmod +x sd-cmd \ # Download store-cli - && wget -q -O - https://github.com/screwdriver-cd/store-cli/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/store-cli/releases/latest \ | egrep -o "/screwdriver-cd/store-cli/releases/download/v[0-9.]*/store-cli_${TARGETOS}_${TARGETARCH}" \ | sed -e "s/\/screwdriver-cd\/\([a-zA-Z-]*\)\/releases\/download\/\(v[0-9.]*\)\/store-cli_${TARGETOS}_${TARGETARCH}/\1 \2/" >> tool-versions \ - && wget -q -O - https://github.com/screwdriver-cd/store-cli/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/store-cli/releases/latest \ | egrep -o "/screwdriver-cd/store-cli/releases/download/v[0-9.]*/store-cli_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O store-cli \ && chmod +x store-cli \ # Download gitversion - && wget -q -O - https://github.com/screwdriver-cd/gitversion/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/gitversion/releases/latest \ | egrep -o "/screwdriver-cd/gitversion/releases/download/v[0-9.]*/gitversion_${TARGETOS}_${TARGETARCH}" \ | sed -e "s/\/screwdriver-cd\/\([a-zA-Z-]*\)\/releases\/download\/\(v[0-9.]*\)\/gitversion_${TARGETOS}_${TARGETARCH}/\1 \2/" >> tool-versions \ - && wget -q -O - https://github.com/screwdriver-cd/gitversion/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/gitversion/releases/latest \ | egrep -o "/screwdriver-cd/gitversion/releases/download/v[0-9.]*/gitversion_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O gitversion \ && chmod +x gitversion \ # Download Tini Static - && wget -q -O - https://github.com/krallin/tini/releases/latest \ + && wget -q -O - https://api.github.com/repos/krallin/tini/releases/latest \ | egrep -o "/krallin/tini/releases/download/v[0-9.]*/tini-static" \ | head -1 \ | wget --base=http://github.com/ -i - -O tini-static \ - && wget -q -O - https://github.com/krallin/tini/releases/latest \ + && wget -q -O - https://api.github.com/repos/krallin/tini/releases/latest \ | egrep -o "/krallin/tini/releases/download/v[0-9.]*/tini-static.asc" \ | wget --base=http://github.com/ -i - -O tini-static.asc \ && found=''; \ diff --git a/Dockerfile.local b/Dockerfile.local index c876d53..2d0f933 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -51,36 +51,36 @@ RUN set -x \ FROM base-${TARGETARCH} AS final RUN set -x \ # Download Log Service - && wget -q -O - https://github.com/screwdriver-cd/log-service/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/log-service/releases/latest \ | egrep -o "/screwdriver-cd/log-service/releases/download/v[0-9.]*/log-service_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O logservice \ && chmod +x logservice \ # Download Meta CLI - && wget -q -O - https://github.com/screwdriver-cd/meta-cli/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/meta-cli/releases/latest \ | egrep -o "/screwdriver-cd/meta-cli/releases/download/v[0-9.]*/meta-cli_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O meta \ && chmod +x meta \ # Download sd-step - && wget -q -O - https://github.com/screwdriver-cd/sd-step/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/sd-step/releases/latest \ | egrep -o "/screwdriver-cd/sd-step/releases/download/v[0-9.]*/sd-step_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O sd-step \ && chmod +x sd-step \ # Download sd-cmd - && wget -q -O - https://github.com/screwdriver-cd/sd-cmd/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/sd-cmd/releases/latest \ | egrep -o "/screwdriver-cd/sd-cmd/releases/download/v[0-9.]*/sd-cmd_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O sd-cmd \ && chmod +x sd-cmd \ # Download store-cli - && wget -q -O - https://github.com/screwdriver-cd/store-cli/releases/latest \ + && wget -q -O - https://api.github.com/repos/screwdriver-cd/store-cli/releases/latest \ | egrep -o "/screwdriver-cd/store-cli/releases/download/v[0-9.]*/store-cli_${TARGETOS}_${TARGETARCH}" \ | wget --base=http://github.com/ -i - -O store-cli \ && chmod +x store-cli \ # Download Tini Static - && wget -q -O - https://github.com/krallin/tini/releases/latest \ + && wget -q -O - https://api.github.com/repos/krallin/tini/releases/latest \ | egrep -o '/krallin/tini/releases/download/v[0-9.]*/tini-static' \ | head -1 \ | wget --base=http://github.com/ -i - -O tini-static \ - && wget -q -O - https://github.com/krallin/tini/releases/latest \ + && wget -q -O - https://api.github.com/repos/krallin/tini/releases/latest \ | egrep -o '/krallin/tini/releases/download/v[0-9.]*/tini-static.asc' \ | wget --base=http://github.com/ -i - -O tini-static.asc \ && found=''; \