feat: workflows

This commit is contained in:
auricom
2022-01-26 23:16:56 +01:00
parent 5f701af03e
commit 4682cf5404
5 changed files with 63 additions and 7 deletions

4
.github/labels.yaml vendored
View File

@@ -13,6 +13,10 @@
color: "ffc300"
- name: renovate/container
color: "ffc300"
- name: renovate/github-action
color: "ffc300"
- name: renovate/github-release
color: "ffc300"
- name: renovate/helm
color: "ffc300"
- name: renovate/terraform

View File

@@ -27,6 +27,14 @@
{
"matchDatasources": ["terraform-provider"],
"addLabels": ["renovate/terraform"]
}
},
{
"matchDatasources": ["github-releases", "github-tags"],
"addLabels": ["renovate/github-release"]
},
{
"matchManagers": ["github-actions"],
"addLabels": ["renovate/github-action"]
}
]
}

View File

@@ -35,10 +35,12 @@ jobs:
uses: peter-evans/create-pull-request@v3
with:
token: "${{ steps.generate-token.outputs.token }}"
branch: "ci/flux-update-${{ steps.update.outputs.flux_version }}"
branch: "github-action/flux-update-${{ steps.update.outputs.flux_version }}"
delete-branch: true
title: "chore(ci): update flux components to ${{ steps.update.outputs.flux_version }}"
title: "chore(github-action): update flux components to ${{ steps.update.outputs.flux_version }}"
signoff: true
commit-message: "chore(ci): update flux components to ${{ steps.update.outputs.flux_version }}"
commit-message: "chore(github-action): update flux components to ${{ steps.update.outputs.flux_version }}"
body: |
Release notes: https://github.com/fluxcd/flux2/releases/tag/${{ steps.update.outputs.flux_version }}
labels: |
renovate/github-action

View File

@@ -0,0 +1,45 @@
---
name: Schedule - Library Chart Update
on: # yamllint disable-line rule:truthy
workflow_dispatch:
schedule:
- cron: "0 */4 * * *"
jobs:
library-chart-update:
name: Library Chart Update
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Generate Token
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: "${{ secrets.BOT_APP_ID }}"
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.6.3
- name: Add library chart
run: helm repo add k8s-at-home-library https://library-charts.k8s-at-home.com
- name: Update helm repositories
run: helm repo update
- name: Update helm dependencies
run: helm dep update
working-directory: charts/kah-common
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
token: "${{ steps.generate-token.outputs.token }}"
branch: github-action/renovate-kah-library-chart
delete-branch: true
title: "chore(github-action): update kah library chart"
signoff: true
commit-message: "chore(github-action): update kah library chart"
body: |
Update the kah library chart
labels: |
renovate/github-action

View File

@@ -4,9 +4,6 @@ on: # yamllint disable-line rule:truthy
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
jobs:
link-checker: