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

Commit 294b9e2

Browse files
committed
Added check for github release asset
1 parent eb8f806 commit 294b9e2

File tree

387 files changed

+667
-341
lines changed

Some content is hidden

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

387 files changed

+667
-341
lines changed

tools/act/Dockerfile.template

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

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

tools/actions-runner/Dockerfile.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ esac
2323
echo " Using ${arch_suffix}"
2424

2525
echo "### Downloading actions-runner ${version}"
26+
check-github-release-asset "actions/runner" "v${version}" "actions-runner-linux-${arch_suffix}-${version}.tar.gz"
2627
curl --silent --location --fail "https://github.com/actions/runner/releases/download/v${version}/actions-runner-linux-${arch_suffix}-${version}.tar.gz" \
2728
| tar --extract --gzip --no-same-owner
2829
EOF

tools/age/Dockerfile.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
66
ARG name
77
ARG version
88
RUN <<EOF
9+
check-github-release-asset "FiloSottile/age" "v${version}" "age-v${version}-linux-amd64.tar.gz"
910
curl --silent --location --fail "https://github.com/FiloSottile/age/releases/download/v${version}/age-v${version}-linux-${alt_arch}.tar.gz" \
1011
| tar --extract --gzip --directory="${prefix}${target}/bin" --strip-components=1 --no-same-owner \
1112
age/age \

tools/ah/Dockerfile.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
66
ARG name
77
ARG version
88
RUN <<EOF
9+
check-github-release-asset "artifacthub/hub" "v${version}" "ah_${version}_linux_${alt_arch}.tar.gz"
910
curl --silent --location --fail "https://github.com/artifacthub/hub/releases/download/v${version}/ah_${version}_linux_${alt_arch}.tar.gz" \
1011
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner \
1112
ah

tools/aiac/Dockerfile.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ case "${arch}" in
2222
esac
2323
echo " Using ${arch_suffix}"
2424

25+
echo "### Downloading aiac ${version}"
26+
check-github-release-asset "gofireflyio/aiac" "v${version}" "aiac_${version}_Linux-${arch_suffix}.tar.gz"
2527
curl --silent --location --fail "https://github.com/gofireflyio/aiac/releases/download/v${version}/aiac_${version}_Linux-${arch_suffix}.tar.gz" \
2628
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner
2729
EOF

tools/aqua/Dockerfile.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
66
ARG name
77
ARG version
88
RUN <<EOF
9+
check-github-release-asset "aquasecurity/aqua-cli" "v${version}" "aqua_linux_${alt_arch}.tar.gz"
910
curl --silent --location --fail "https://github.com/aquaproj/aqua/releases/download/v${version}/aqua_linux_${alt_arch}.tar.gz" \
1011
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner \
1112
aqua

tools/argo/Dockerfile.template

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

99
RUN <<EOF
10+
check-github-release-asset "argoproj/argo-workflows" "v${version}" "argo-linux-${alt_arch}.gz"
1011
curl --silent --location --fail "https://github.com/argoproj/argo-workflows/releases/download/v${version}/argo-linux-${alt_arch}.gz" \
1112
| gunzip \
1213
>"${prefix}${target}/bin/argo"

tools/argocd/Dockerfile.template

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

99
RUN <<EOF
10+
check-github-release-asset "argoproj/argo-cd" "v${version}" "argocd-linux-${alt_arch}"
1011
curl --silent --location --fail --output "${prefix}${target}/bin/argocd" \
1112
"https://github.com/argoproj/argo-cd/releases/download/v${version}/argocd-linux-${alt_arch}"
1213
chmod +x "${prefix}${target}/bin/argocd"

tools/arkade/Dockerfile.template

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ case "${arch}" in
2121
esac
2222
echo " Using ${arch_suffix}"
2323

24+
check-github-release-asset "alexellis/arkade" "${version}" "arkade${arch_suffix}"
25+
2426
echo "### Downloading arkade ${version}"
25-
curl --silent --location --fail --output "${prefix}${target}/bin/arkade" "https://github.com/alexellis/arkade/releases/download/${version}/arkade${arch_suffix}"
27+
curl --silent --location --fail --output "${prefix}${target}/bin/arkade" \
28+
"https://github.com/alexellis/arkade/releases/download/${version}/arkade${arch_suffix}"
2629
chmod +x "${prefix}${target}/bin/arkade"
2730
EOF
2831

tools/artifactory-cleanup/Dockerfile.template

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

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

0 commit comments

Comments
 (0)