WIP
This commit is contained in:
parent
56190eb852
commit
c6e957d7f2
@ -14,15 +14,28 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Determine OS and Architecture
|
||||||
|
run: |
|
||||||
|
# determine operating system
|
||||||
|
OS=$(uname | tr '[:upper:]' '[:lower:]')
|
||||||
|
echo "OS=${OS}" >> ${GITHUB_ENV}
|
||||||
|
|
||||||
|
# determine architecture
|
||||||
|
ARCH="$(uname -m)"
|
||||||
|
case "${ARCH}" in
|
||||||
|
x86_64) ARCH=amd64;;
|
||||||
|
esac
|
||||||
|
echo "ARCH=${ARCH}" >> ${GITHUB_ENV}
|
||||||
|
|
||||||
- name: install tools
|
- name: install tools
|
||||||
run: |
|
run: |
|
||||||
apt update -y
|
apt update -y
|
||||||
apt install -y curl ca-certificates curl gnupg
|
apt install -y curl ca-certificates curl gnupg
|
||||||
# helm
|
# helm
|
||||||
curl -O https://get.helm.sh/helm-v${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
curl -O https://get.helm.sh/helm-v${{ env.HELM_VERSION }}-${OS}-${ARCH}.tar.gz
|
||||||
tar -xzf helm-v${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
tar -xzf helm-v${{ env.HELM_VERSION }}-${OS}-${ARCH}.tar.gz
|
||||||
mv linux-amd64/helm /usr/local/bin/
|
mv ${OS}-${ARCH}/helm /usr/local/bin/
|
||||||
rm -rf linux-amd64 helm-v${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
rm -rf ${OS}-${ARCH} helm-v${{ env.HELM_VERSION }}-${OS}-${ARCH}.tar.gz
|
||||||
helm version
|
helm version
|
||||||
# docker
|
# docker
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
install -m 0755 -d /etc/apt/keyrings
|
||||||
@ -47,14 +60,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
YQ_VERSION: v4.45.4 # renovate: datasource=github-releases depName=mikefarah/yq
|
YQ_VERSION: v4.45.4 # renovate: datasource=github-releases depName=mikefarah/yq
|
||||||
run: |
|
run: |
|
||||||
# determine operating system
|
|
||||||
OS=$(uname | tr '[:upper:]' '[:lower:]')
|
|
||||||
|
|
||||||
# determine architecture
|
|
||||||
ARCH="$(uname -m)"
|
|
||||||
case "${ARCH}" in
|
|
||||||
x86_64) ARCH=amd64;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Download yq
|
# Download yq
|
||||||
curl --silent --fail --location https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_${OS}_${ARCH}.tar.gz --output /dev/stdout | tar --extract --gzip && mv yq_${OS}_${ARCH} /usr/bin/yq
|
curl --silent --fail --location https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_${OS}_${ARCH}.tar.gz --output /dev/stdout | tar --extract --gzip && mv yq_${OS}_${ARCH} /usr/bin/yq
|
||||||
|
Loading…
x
Reference in New Issue
Block a user