Add OIDC test using keycloak as idp (#7242) #54
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
name: Update Kubernetes version in Helm chart | |
on: | |
push: | |
branches: | |
- main | |
- release-* | |
paths: | |
- tests/Dockerfile | |
concurrency: | |
group: ${{ github.ref_name }}-k8s-version | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
update-k8s-version: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Get current k8s version from Kind image | |
id: k8s-version | |
run: | | |
v=$(grep kindest tests/Dockerfile | cut -d ':' -f 2 | cut -d '@' -f 1) | |
echo "version=${v}" >> $GITHUB_OUTPUT | |
cat $GITHUB_OUTPUT | |
- name: Search for the version in the schema file | |
id: search | |
run: | | |
found="false" | |
if grep -q ${{ steps.k8s-version.outputs.version }} charts/nginx-ingress/values.schema.json; then | |
found="true" | |
fi | |
echo "found=$found" >> $GITHUB_OUTPUT | |
cat $GITHUB_OUTPUT | |
- name: Replace version in Helm schema file | |
run: | | |
sed -i -e "s#/v[0-9]\+\.[0-9]\+\.[0-9]\+/_definitions.json#/${{ steps.k8s-version.outputs.version }}/_definitions.json#" charts/nginx-ingress/values.schema.json | |
if: ${{ steps.search.outputs.found == 'false' }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6 | |
with: | |
token: ${{ secrets.NGINX_PAT }} | |
commit-message: update kubernetes version to ${{ steps.k8s-version.outputs.version }} in helm schema | |
title: update kubernetes version to ${{ steps.k8s-version.outputs.version }} in helm schema | |
branch: chore/k8s-${{ steps.k8s-version.outputs.version }} | |
author: nginx-bot <[email protected]> | |
body: | | |
This automated PR updates the helm schema k8s version to ${{ steps.k8s-version.outputs.version }}. | |
if: ${{ steps.search.outputs.found == 'false' }} |