Skip to content

Commit

Permalink
feature/github-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Wang committed Oct 22, 2024
1 parent bcb8646 commit 76081da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
- name: Get versions
id: set-versions
run: |
set -x
# Get the list of all releases tags, excludes alpha, beta, rc tags
releases=$(curl -s https://api.github.com/repos/kubernetes/kubernetes/releases | jq -r '.[].tag_name | select(test("alpha|beta|rc") | not)')
Expand All @@ -53,15 +52,14 @@ jobs:
echo ${latest_versions[@]}
# Convert to JSON array for matrix
echo "versions=$(echo ${latest_versions[@]})" >> $GITHUB_OUTPUT
echo "versions=$(echo ${latest_versions[@]})" >> $GITHUB_ENV
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write

strategy:
matrix:
version: ${{ fromJson(needs.get-kubectl-versions.outputs.versions) }}
version: ${{ env.versions }}
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit 76081da

Please sign in to comment.