-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from hypnoglow/release-test-install
ci: move release & test-install to Github Actions
- Loading branch information
Showing
4 changed files
with
57 additions
and
74 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: test-install | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
test-install: | ||
name: Test plugin installation | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Install helm | ||
run: | | ||
helm_version="3.9.3" | ||
tar_filename="helm-v${helm_version}-linux-amd64.tar.gz" | ||
checksum_filename="helm-v${helm_version}-linux-amd64.tar.gz.sha256sum" | ||
curl -sSL https://get.helm.sh/${tar_filename} -O | ||
curl -sSL https://get.helm.sh/${checksum_filename} -O | ||
cat ${checksum_filename} | sha256sum -c | ||
tar xzf ${tar_filename} | ||
sudo mv linux-amd64/helm /usr/local/bin/helm | ||
rm -rf linux-amd64 ${tar_filename} ${checksum_filename} | ||
- name: Install helm-s3 plugin | ||
run: | | ||
version="${GITHUB_SHA}" | ||
export HELM_S3_PLUGIN_NO_INSTALL_HOOK=true | ||
if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then | ||
version="${GITHUB_REF_NAME#v*}" | ||
export HELM_S3_PLUGIN_NO_INSTALL_HOOK= | ||
fi | ||
echo "Check installation of version ${version}" | ||
helm plugin install https://github.com/hypnoglow/helm-s3.git --version ${version} |