Skip to content

Commit

Permalink
Update repos to use ${OS} and ${ARCH} variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Icikowski committed Feb 5, 2022
1 parent f58e398 commit 6ad30ee
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions repositories/icikowski.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ contents:
current_version_check:
- gpts --service-port -1 | head -n 1 | jq -r ".version"
install_scenario:
- wget -q -O ${TEMP}/gpts "https://github.com/Icikowski/GPTS/releases/download/v${LATEST_VERSION}/gpts-${LATEST_VERSION}-linux-amd64"
- wget -q -O ${TEMP}/gpts "https://github.com/Icikowski/GPTS/releases/download/v${LATEST_VERSION}/gpts-${LATEST_VERSION}-${OS}-${ARCH}"
- mv ${TEMP}/gpts /usr/local/bin/gpts
- chmod a+x /usr/local/bin/gpts
update_scenario:
- rm -f /usr/local/bin/gpts
- wget -q -O ${TEMP}/gpts "https://github.com/Icikowski/GPTS/releases/download/v${LATEST_VERSION}/gpts-${LATEST_VERSION}-linux-amd64"
- wget -q -O ${TEMP}/gpts "https://github.com/Icikowski/GPTS/releases/download/v${LATEST_VERSION}/gpts-${LATEST_VERSION}-${OS}-${ARCH}"
- mv ${TEMP}/gpts /usr/local/bin/gpts
- chmod a+x /usr/local/bin/gpts
uninstall_scenario:
Expand All @@ -26,12 +26,12 @@ contents:
current_version_check:
- traffic-generator -version | jq ".version" -r
install_scenario:
- wget -q -O ${TEMP}/traffic-generator "https://github.com/Icikowski/Traffic-Generator/releases/download/v${LATEST_VERSION}/traffic-generator-linux-amd64"
- wget -q -O ${TEMP}/traffic-generator "https://github.com/Icikowski/Traffic-Generator/releases/download/v${LATEST_VERSION}/traffic-generator-${OS}-${ARCH}"
- mv ${TEMP}/traffic-generator /usr/local/bin/traffic-generator
- chmod a+x /usr/local/bin/traffic-generator
update_scenario:
- rm -rf /usr/local/bin/traffic-generator
- wget -q -O ${TEMP}/traffic-generator "https://github.com/Icikowski/Traffic-Generator/releases/download/v${LATEST_VERSION}/traffic-generator-linux-amd64"
- wget -q -O ${TEMP}/traffic-generator "https://github.com/Icikowski/Traffic-Generator/releases/download/v${LATEST_VERSION}/traffic-generator-${OS}-${ARCH}"
- mv ${TEMP}/traffic-generator /usr/local/bin/traffic-generator
- chmod a+x /usr/local/bin/traffic-generator
uninstall_scenario:
Expand Down
8 changes: 4 additions & 4 deletions repositories/k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contents:
current_version_check:
- helm version --short | awk -F'+' '{ print $1 }' | sed 's/v//'
install_scenario:
- wget -q -O ${TEMP}/helm.tgz "https://get.helm.sh/helm-v${LATEST_VERSION}-linux-amd64.tar.gz"
- wget -q -O ${TEMP}/helm.tgz "https://get.helm.sh/helm-v${LATEST_VERSION}-${OS}-${ARCH}.tar.gz"
- (cd ${TEMP}; tar -xzf helm.tgz --strip-components=1)
- cp ${TEMP}/helm /usr/local/bin/helm
- chmod a+x /usr/local/bin/helm
Expand All @@ -18,7 +18,7 @@ contents:
update_scenario:
- rm -rf /usr/local/bin/helm
- rm -rf /etc/bash_completion.d/helm
- wget -q -O ${TEMP}/helm.tgz "https://get.helm.sh/helm-v${LATEST_VERSION}-linux-amd64.tar.gz"
- wget -q -O ${TEMP}/helm.tgz "https://get.helm.sh/helm-v${LATEST_VERSION}-${OS}-${ARCH}.tar.gz"
- (cd ${TEMP}; tar -xzf helm.tgz --strip-components=1)
- cp ${TEMP}/helm /usr/local/bin/helm
- chmod a+x /usr/local/bin/helm
Expand All @@ -34,7 +34,7 @@ contents:
current_version_check:
- "stern -v | head -n 1 | sed 's/version: //'"
install_scenario:
- wget -q -O ${TEMP}/stern.tgz "https://github.com/stern/stern/releases/download/v${LATEST_VERSION}/stern_${LATEST_VERSION}_linux_amd64.tar.gz"
- wget -q -O ${TEMP}/stern.tgz "https://github.com/stern/stern/releases/download/v${LATEST_VERSION}/stern_${LATEST_VERSION}_${OS}_${ARCH}.tar.gz"
- (cd ${TEMP}; tar -xzf stern.tgz)
- cp ${TEMP}/stern /usr/local/bin/stern
- chmod a+x /usr/local/bin/stern
Expand All @@ -43,7 +43,7 @@ contents:
update_scenario:
- rm -rf /usr/local/bin/stern
- rm -rf /etc/bash_completion.d/stern
- wget -q -O ${TEMP}/stern.tgz "https://github.com/stern/stern/releases/download/v${LATEST_VERSION}/stern_${LATEST_VERSION}_linux_amd64.tar.gz"
- wget -q -O ${TEMP}/stern.tgz "https://github.com/stern/stern/releases/download/v${LATEST_VERSION}/stern_${LATEST_VERSION}_${OS}_${ARCH}.tar.gz"
- (cd ${TEMP}; tar -xzf stern.tgz --strip-components=1)
- cp ${TEMP}/stern /usr/local/bin/stern
- chmod a+x /usr/local/bin/stern
Expand Down
6 changes: 3 additions & 3 deletions repositories/sigstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ contents:
current_version_check:
- cosign version | grep "GitVersion" | awk '{ print $2 }' | sed 's/v//'
install_scenario:
- wget -q -O ${TEMP}/cosign "https://github.com/sigstore/cosign/releases/download/v${LATEST_VERSION}/cosign-linux-amd64"
- wget -q -O ${TEMP}/cosign "https://github.com/sigstore/cosign/releases/download/v${LATEST_VERSION}/cosign-${OS}-${ARCH}"
- mv ${TEMP}/cosign /usr/local/bin/cosign
- chmod a+x /usr/local/bin/cosign
- cosign completion bash >/etc/bash_completion.d/cosign
- chmod a+x /etc/bash_completion.d/cosign
update_scenario:
- rm -rf /usr/local/bin/cosign
- rm -rf /etc/bash_completion.d/cosign
- wget -q -O ${TEMP}/cosign "https://github.com/sigstore/cosign/releases/download/v${LATEST_VERSION}/cosign-linux-amd64"
- wget -q -O ${TEMP}/cosign "https://github.com/sigstore/cosign/releases/download/v${LATEST_VERSION}/cosign-${OS}-${ARCH}"
- mv ${TEMP}/cosign /usr/local/bin/cosign
- chmod a+x /usr/local/bin/cosign
- cosign completion bash >/etc/bash_completion.d/cosign
- chmod a+x /etc/bash_completion.d/cosign
uninstall_scenario:
- rm -rf /usr/local/bin/cosign
- rm -rf /etc/bash_completion.d/cosign
- rm -rf /etc/bash_completion.d/cosign
4 changes: 2 additions & 2 deletions repositories/tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ contents:
current_version_check:
- yq --version | sed "s/.*version \([0-9.]*\).*/\1/"
install_scenario:
- wget -q -O ${TEMP}/yq.tgz "https://github.com/mikefarah/yq/releases/download/v${LATEST_VERSION}/yq_linux_amd64.tar.gz"
- wget -q -O ${TEMP}/yq.tgz "https://github.com/mikefarah/yq/releases/download/v${LATEST_VERSION}/yq_${OS}_${ARCH}.tar.gz"
- (cd ${TEMP}; tar -xzf yq.tgz)
- cp ${TEMP}/yq_linux_amd64 /usr/local/bin/yq
- chmod a+x /usr/local/bin/yq
Expand All @@ -81,7 +81,7 @@ contents:
update_scenario:
- rm -rf /usr/local/bin/yq
- rm -rf /usr/local/share/man/man1/yq.1
- wget -q -O ${TEMP}/yq.tgz "https://github.com/mikefarah/yq/releases/download/v${LATEST_VERSION}/yq_linux_amd64.tar.gz"
- wget -q -O ${TEMP}/yq.tgz "https://github.com/mikefarah/yq/releases/download/v${LATEST_VERSION}/yq_${OS}_${ARCH}.tar.gz"
- (cd ${TEMP}; tar -xzf yq.tgz)
- cp ${TEMP}/yq_linux_amd64 /usr/local/bin/yq
- chmod a+x /usr/local/bin/yq
Expand Down

0 comments on commit 6ad30ee

Please sign in to comment.