mirror of
https://github.com/ahinko/home-ops
synced 2026-04-21 13:37:24 +00:00
42 lines
1.6 KiB
YAML
42 lines
1.6 KiB
YAML
---
|
|
name: Create issue when Kubernetes update is available
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "kubernetes/talos/talconfig.yaml"
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}-${{ github.workflow }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check-for-kubernetes-updates:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Generate Token
|
|
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
|
|
id: generate-token
|
|
with:
|
|
app-id: "${{ secrets.HOMEOPS_BOT_APP_ID }}"
|
|
private-key: "${{ secrets.HOMEOPS_BOT_PRIVATE_KEY }}"
|
|
|
|
- name: Parse semver string
|
|
id: semver_parser
|
|
if: contains(github.event.head_commit.message, 'update image ghcr.io/siderolabs/kubelet')
|
|
uses: booxmedialtd/ws-action-parse-semver@7784200024d6b3fc01253e617ec0168daf603de3 # v1.4.7
|
|
with:
|
|
input_string: "${{ github.event.head_commit.message }}"
|
|
version_extractor_regex: "→ v([0-9.]*)"
|
|
|
|
- name: Create issue if new version of Kubernetes is available
|
|
if: contains(github.event.head_commit.message, 'update image ghcr.io/siderolabs/kubelet')
|
|
uses: dacbd/create-issue-action@cdb57ab6ff8862aa09fee2be6ba77a59581921c2 # v2.0.0
|
|
with:
|
|
token: "${{ steps.generate-token.outputs.token }}"
|
|
title: "🚀 Upgrade Kubernetes to v${{ steps.semver_parser.outputs.fullversion }}"
|
|
body: |
|
|
A new version of Kubernetes has been merged in to the main branch. Please run the upgrade command after you have checked that each app on the cluster supports the new version, (mainly databases and rook).
|
|
assignees: ahinko
|