Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit e293f54

Browse files
committed
Fail on download error
1 parent cf00154 commit e293f54

File tree

290 files changed

+402
-402
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+402
-402
lines changed

@template/Dockerfile.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ ARG version
88

99
# tarball
1010
#RUN <<EOF
11-
#curl --silent --location "" \
11+
#curl --silent --location --fail "" \
1212
#| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner
1313
#EOF
1414

1515
# executable
1616
#RUN <<EOF
17-
#curl --silent --location --output "${prefix}${target}/bin/foo" \
17+
#curl --silent --location --fail --output "${prefix}${target}/bin/foo" \
1818
# ""
1919
#chmod +x "${prefix}${target}/bin/foo"
2020
#EOF
@@ -23,7 +23,7 @@ ARG version
2323
#RUN <<EOF
2424
#url=""
2525
#filename="$(basename "${url}")"
26-
#curl --silent --location --remote-name "${url}"
26+
#curl --silent --location --fail --remote-name "${url}"
2727
#unzip -q -o -d "${prefix}${target}/bin" "${filename}"
2828
#EOF
2929

tools/act/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG name
77
ARG version
88

99
RUN <<EOF
10-
curl --silent --location "https://github.com/nektos/act/releases/download/v${version}/act_Linux_${arch}.tar.gz" \
10+
curl --silent --location --fail "https://github.com/nektos/act/releases/download/v${version}/act_Linux_${arch}.tar.gz" \
1111
| tar --extract --gzip --directory="${prefix}${target}/bin" --no-same-owner \
1212
act
1313
EOF

tools/age/Dockerfile.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ ARG name
77
ARG version
88

99
RUN <<EOF
10-
curl --silent --location https://github.com/FiloSottile/age/releases/download/v${version}/age-v${version}-linux-${alt_arch}.tar.gz \
10+
curl --silent --location --fail "https://github.com/FiloSottile/age/releases/download/v${version}/age-v${version}-linux-${alt_arch}.tar.gz" \
1111
| tar --extract --gzip --directory="${prefix}${target}/bin" --strip-components=1 --no-same-owner \
1212
age/age \
1313
age/age-keygen
1414

15-
curl --silent --location --output "${prefix}${target}/share/man/man1/age.1" \
15+
curl --silent --location --fail --output "${prefix}${target}/share/man/man1/age.1" \
1616
"https://github.com/FiloSottile/age/raw/v${version}/doc/age.1"
17-
curl --silent --location --output "${prefix}${target}/share/man/man1/age-keygen.1" \
17+
curl --silent --location --fail --output "${prefix}${target}/share/man/man1/age-keygen.1" \
1818
"https://github.com/FiloSottile/age/raw/v${version}/doc/age-keygen.1"
1919
EOF

tools/ansi/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG name
77
ARG version
88

99
RUN <<EOF
10-
curl --silent --location --output "${prefix}${target}/bin/ansi" \
10+
curl --silent --location --fail --output "${prefix}${target}/bin/ansi" \
1111
"https://github.com/fidian/ansi/raw/${version}/ansi"
1212
chmod +x "${prefix}${target}/bin/ansi"
1313
EOF

tools/apk/Dockerfile.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ ARG version
88

99
# tarball
1010
#RUN <<EOF
11-
#curl --silent --location "" \
11+
#curl --silent --location --fail "" \
1212
#| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner
1313
#EOF
1414

1515
# executable
1616
RUN <<EOF
17-
curl --silent --location --output "${prefix}${target}/bin/apk" \
17+
curl --silent --location --fail --output "${prefix}${target}/bin/apk" \
1818
"https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic//v${version}/${arch}/apk.static"
1919
chmod +x "${prefix}${target}/bin/apk"
2020
EOF
@@ -23,7 +23,7 @@ EOF
2323
#RUN <<EOF
2424
#url=""
2525
#filename="$(basename "${url}")"
26-
#curl --silent --location --remote-name "${url}"
26+
#curl --silent --location --fail --remote-name "${url}"
2727
#unzip -q -o -d "${prefix}${target}/bin" "${filename}"
2828
#EOF
2929

tools/argo/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG name
77
ARG version
88

99
RUN <<EOF
10-
curl --silent --location "https://github.com/argoproj/argo-workflows/releases/download/v${version}/argo-linux-${alt_arch}.gz" \
10+
curl --silent --location --fail "https://github.com/argoproj/argo-workflows/releases/download/v${version}/argo-linux-${alt_arch}.gz" \
1111
| gunzip \
1212
>"${prefix}${target}/bin/argo"
1313
chmod +x "${prefix}${target}/bin/argo"

tools/argocd/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG name
77
ARG version
88

99
RUN <<EOF
10-
curl --silent --location --output "${prefix}${target}/bin/argocd" \
10+
curl --silent --location --fail --output "${prefix}${target}/bin/argocd" \
1111
"https://github.com/argoproj/argo-cd/releases/download/v${version}/argocd-linux-${alt_arch}"
1212
chmod +x "${prefix}${target}/bin/argocd"
1313
"${prefix}${target}/bin/argocd" completion bash >"${prefix}${target}/share/bash-completion/completions/argocd"

tools/arkade/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG name
77
ARG version
88

99
RUN <<EOF
10-
curl --silent --location --output "${prefix}${target}/bin/arkade" "https://github.com/alexellis/arkade/releases/download/${version}/arkade"
10+
curl --silent --location --fail --output "${prefix}${target}/bin/arkade" "https://github.com/alexellis/arkade/releases/download/${version}/arkade"
1111
chmod +x "${prefix}${target}/bin/arkade"
1212
"${prefix}${target}/bin/arkade" completion bash >"${prefix}${target}/share/bash-completion/completions/arkade"
1313
"${prefix}${target}/bin/arkade" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/arkade.fish"

tools/artifactory-cleanup/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG name
77
ARG version
88

99
RUN <<EOF
10-
curl --silent --location "https://github.com/crazy-max/artifactory-cleanup/releases/download/v${version}/artifactory-cleanup_${version}_linux_${alt_arch}.tar.gz" \
10+
curl --silent --location --fail "https://github.com/crazy-max/artifactory-cleanup/releases/download/v${version}/artifactory-cleanup_${version}_linux_${alt_arch}.tar.gz" \
1111
| tar --extract --gzip --directory="${prefix}${target}/bin" --no-same-owner \
1212
artifactory-cleanup
1313
EOF

tools/asciigraph/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG name
77
ARG version
88

99
RUN <<EOF
10-
curl --silent --location "https://github.com/guptarohit/asciigraph/releases/download/v${version}/asciigraph_${version}_Linux_x86_64.tar.gz" \
10+
curl --silent --location --fail "https://github.com/guptarohit/asciigraph/releases/download/v${version}/asciigraph_${version}_Linux_x86_64.tar.gz" \
1111
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner \
1212
asciigraph
1313
EOF

0 commit comments

Comments
 (0)