Skip to content

Commit

Permalink
Pull eksctl supported versions for CI (#1465)
Browse files Browse the repository at this point in the history
* remove kubernetes versions file and use eksctl supported version list

* recognize compression

Co-authored-by: Carter <cartermckinnon@gmail.com>

---------

Co-authored-by: Carter <cartermckinnon@gmail.com>
  • Loading branch information
ndbaker1 and cartermckinnon committed Oct 11, 2023
1 parent a989821 commit 4835c67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,17 @@ jobs:
build_id: ${{ steps.variables.outputs.build_id }}
ci_step_name_prefix: ${{ steps.variables.outputs.ci_step_name_prefix }}
steps:
- uses: actions/checkout@v3
- id: variables
run: |
echo "git_sha_short=$(echo ${{ inputs.git_sha }} | rev | cut -c-7 | rev)" >> $GITHUB_OUTPUT
echo "workflow_run_url=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> $GITHUB_OUTPUT
echo "kubernetes_versions=$(cat kubernetes-versions.json | jq -c .)" >> $GITHUB_OUTPUT
# grab supported versions directly from eksctl
wget --no-verbose -O eksctl.tar.gz "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_Linux_amd64.tar.gz"
tar xzf eksctl.tar.gz && chmod +x ./eksctl
echo "kubernetes_versions=$(./eksctl version --output json | jq -c .EKSServerSupportedVersions)" >> $GITHUB_OUTPUT
echo "build_id=ci-${{ inputs.pr_number }}-${{ needs.setup.outputs.git_sha_short }}-${{ inputs.uuid }}" >> $GITHUB_OUTPUT
echo 'ci_step_name_prefix=CI:' >> $GITHUB_OUTPUT
notify-start:
runs-on: ubuntu-latest
needs:
Expand Down
8 changes: 0 additions & 8 deletions kubernetes-versions.json

This file was deleted.

0 comments on commit 4835c67

Please sign in to comment.