mirror of
https://github.com/helm/chart-testing.git
synced 2026-02-05 09:45:14 +01:00
Refactor install tools for ci/release jobs (#440)
* updates for helm, kubectl, goreleaser, syft, cosign and kind Signed-off-by: cpanato <ctadeu@gmail.com> * refactor ci/release install tools Signed-off-by: cpanato <ctadeu@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ab83f064a3
commit
49167c48fd
15
.github/workflows/ci.yaml
vendored
15
.github/workflows/ci.yaml
vendored
@@ -27,7 +27,18 @@ jobs:
|
||||
|
||||
- uses: azure/setup-helm@18bc76811624f360dbd7f18c2d4ecb32c7b87bab # v1.1
|
||||
with:
|
||||
version: v3.8.2
|
||||
version: v3.9.0
|
||||
|
||||
- name: Install GoReleaser
|
||||
uses: goreleaser/goreleaser-action@68acf3b1adf004ac9c2f0a4259e85c5f66e99bef # v3.0.0
|
||||
with:
|
||||
install-only: true
|
||||
|
||||
- name: Install cosign
|
||||
uses: sigstore/cosign-installer@536b37ec5d5b543420bdfd9b744c5965bd4d8730 # v2.3.0
|
||||
|
||||
- name: Install syft
|
||||
uses: anchore/sbom-action/download-syft@bb716408e75840bbb01e839347cd213767269d4a # v0.11.0
|
||||
|
||||
- name: Install tools
|
||||
run: |
|
||||
@@ -35,7 +46,7 @@ jobs:
|
||||
chmod +x ./kubectl
|
||||
sudo mv ./kubectl /usr/local/bin/kubectl
|
||||
|
||||
curl -fsSLo kind "https://github.com/kubernetes-sigs/kind/releases/download/v0.12.0/kind-linux-amd64"
|
||||
curl -fsSLo kind "https://github.com/kubernetes-sigs/kind/releases/download/v0.14.0/kind-linux-amd64"
|
||||
chmod +x kind
|
||||
sudo mv kind /usr/local/bin/kind
|
||||
|
||||
|
||||
11
.github/workflows/release.yaml
vendored
11
.github/workflows/release.yaml
vendored
@@ -30,6 +30,17 @@ jobs:
|
||||
go-version: '1.18'
|
||||
check-latest: true
|
||||
|
||||
- name: Install GoReleaser
|
||||
uses: goreleaser/goreleaser-action@68acf3b1adf004ac9c2f0a4259e85c5f66e99bef # v3.0.0
|
||||
with:
|
||||
install-only: true
|
||||
|
||||
- name: Install cosign
|
||||
uses: sigstore/cosign-installer@536b37ec5d5b543420bdfd9b744c5965bd4d8730 # v2.3.0
|
||||
|
||||
- name: Install syft
|
||||
uses: anchore/sbom-action/download-syft@bb716408e75840bbb01e839347cd213767269d4a # v0.11.0
|
||||
|
||||
- name: Install tools
|
||||
run: |
|
||||
./setup.sh
|
||||
|
||||
@@ -23,14 +23,14 @@ RUN pip install "yamale==$yamale_version"
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
# Install kubectl
|
||||
ARG kubectl_version=v1.22.5
|
||||
ARG kubectl_version=v1.23.6
|
||||
LABEL kubectl_version=$kubectl_version
|
||||
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/$kubectl_version/bin/$TARGETPLATFORM/kubectl" && \
|
||||
chmod +x kubectl && \
|
||||
mv kubectl /usr/local/bin/
|
||||
|
||||
# Install Helm
|
||||
ARG helm_version=v3.8.1
|
||||
ARG helm_version=v3.9.0
|
||||
LABEL helm_version=$helm_version
|
||||
RUN targetArch=$(echo $TARGETPLATFORM | cut -f2 -d '/') \
|
||||
&& if [ ${targetArch} = "amd64" ]; then \
|
||||
|
||||
Reference in New Issue
Block a user