-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: implement flux install/upgrade regression test pipeline
Signed-off-by: Yang Chiu <[email protected]>
- Loading branch information
Showing
12 changed files
with
398 additions
and
45 deletions.
There are no files selected for viewing
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
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,37 @@ | ||
From alpine:latest | ||
|
||
ARG KUBECTL_VERSION=v1.20.2 | ||
|
||
ARG RKE_VERSION=v1.3.4 | ||
|
||
ARG TERRAFORM_VERSION=1.3.5 | ||
|
||
ARG YQ_VERSION=v4.24.2 | ||
|
||
ENV WORKSPACE /src/longhorn-tests | ||
|
||
WORKDIR $WORKSPACE | ||
|
||
RUN wget -q https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl && \ | ||
mv kubectl /usr/local/bin/kubectl && \ | ||
chmod +x /usr/local/bin/kubectl && \ | ||
wget -q https://github.com/rancher/rke/releases/download/$RKE_VERSION/rke_linux-amd64 && \ | ||
mv rke_linux-amd64 /usr/bin/rke && \ | ||
chmod +x /usr/bin/rke && \ | ||
wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \ | ||
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip && rm terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \ | ||
mv terraform /usr/bin/terraform && \ | ||
chmod +x /usr/bin/terraform && \ | ||
wget -q "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" && \ | ||
mv yq_linux_amd64 /usr/local/bin/yq && \ | ||
chmod +x /usr/local/bin/yq && \ | ||
apk add openssl openssh-client ca-certificates git rsync bash curl jq python3 py3-pip && \ | ||
ssh-keygen -t rsa -b 4096 -N "" -f ~/.ssh/id_rsa && \ | ||
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && \ | ||
chmod 700 get_helm.sh && \ | ||
./get_helm.sh && \ | ||
curl -s -o flux_install.sh https://fluxcd.io/install.sh && \ | ||
chmod 700 flux_install.sh && \ | ||
./flux_install.sh | ||
|
||
COPY [".", "$WORKSPACE"] |
Oops, something went wrong.