diff --git a/.github/actions/setup-helm/action.yml b/.github/actions/setup-helm/action.yml deleted file mode 100644 index f60cbc1b4..000000000 --- a/.github/actions/setup-helm/action.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: "Setup Helm" -description: "Install the helm CLI" -inputs: - helm-version: - description: The helm version to install - default: "3.8.1" - required: false - linux-bin-path: - description: Where to put the helm binary on linux runners - required: false - win-bin-path: - description: Where to put the helm binary on windows runners - required: false -runs: - using: "composite" - steps: - - name: Install helm cli - shell: bash - env: - LIN_PATH: ${{ inputs.linux-bin-path }} - WIN_PATH: ${{ inputs.win-bin-path }} - run: ${{ github.action_path }}/setup-helm.sh ${{ inputs.helm-version }} diff --git a/.github/actions/setup-helm/setup-helm.sh b/.github/actions/setup-helm/setup-helm.sh deleted file mode 100755 index 75d9733b6..000000000 --- a/.github/actions/setup-helm/setup-helm.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -e -HELM_VERSION=$1 -WIN_PATH=${WIN_PATH:-$HOME/bin/} -LIN_PATH=${LIN_PATH:-/usr/local/bin/} -if [ "$RUNNER_OS" == "Windows" ]; then - curl -fsSLo helm.zip https://get.helm.sh/helm-v${HELM_VERSION}-windows-amd64.zip - unzip -o helm.zip windows-amd64/helm.exe && rm helm.zip && mv windows-amd64/helm.exe "${WIN_PATH}" && rmdir windows-amd64 -elif [ "$RUNNER_OS" == "Linux" ]; then - curl -fsSL https://get.helm.sh/helm-v${HELM_VERSION}-$(uname | tr '[:upper:]' '[:lower:]')-amd64.tar.gz | tar xz --strip=1 -C "${LIN_PATH}" $(uname | tr '[:upper:]' '[:lower:]')-amd64/helm -else - echo "$RUNNER_OS not supported" - exit 1 -fi - -echo helm $(helm version --client --short) has been installed diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b21ad5d87..e4d885c31 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,6 @@ jobs: steps: - uses: actions/checkout@v1 - uses: ./.github/actions/pre-commit - - uses: ./.github/actions/setup-helm - uses: ./.github/actions/setup-helm-docs - uses: ./.github/actions/setup-jx-release-version - uses: ./.github/actions/setup-kubepug diff --git a/README.md b/README.md index 79fdafa3c..20af886f5 100644 --- a/README.md +++ b/README.md @@ -117,20 +117,6 @@ or into an existing workflow of your choice just declaring the step: ### setup-checkov -### setup-helm - -If you need the helm cli available in the runner path: - -```yml -jobs: - - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm@master -``` - ### setup-helm-docs ### setup-jx-release-version