mirror of
https://github.com/auricom/home-cluster.git
synced 2025-10-03 01:00:54 +02:00
add github actions
split goldilocks yaml files fix github actions fix github actions fix github actions fix github actions fix github actions fix github actions fix github actions fix github actions fix github actions fix github actions Update Flux components to v0.4.3 [ci-skip] Signed-off-by: GitHub <noreply@github.com> fix github actions fix github actions fix github actions
This commit is contained in:
37
.github/workflows/renovate-helmrelease-schedule.yaml
vendored
Normal file
37
.github/workflows/renovate-helmrelease-schedule.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: renovate-helmrelease-schedule
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "15 * * * *"
|
||||
|
||||
jobs:
|
||||
renovate-helmrelease:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Install yq
|
||||
run: |
|
||||
mkdir -p "${GITHUB_WORKSPACE}/bin"
|
||||
echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH
|
||||
curl -sL -o "${GITHUB_WORKSPACE}/bin/yq" https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64
|
||||
chmod +x "${GITHUB_WORKSPACE}/bin/yq"
|
||||
- name: Create HelmRelease annotations
|
||||
run: ./hack/create-helmrelease-annotations.sh
|
||||
|
||||
- name: Create pull request for HelmRelease annotations
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: helm-release-annotations
|
||||
delete-branch: true
|
||||
title: "Update HelmRelease annotations for Renovate [ci-skip]"
|
||||
signoff: true
|
||||
assignees: "auricom"
|
||||
commit-message: "Update HelmRelease annotations for Renovate [ci-skip]"
|
||||
body: |
|
||||
Add comment annotations to HelmReleases inorder for Renovate to pick up new versions of Helm charts
|
||||
labels: renovate/helm-release-annotations
|
43
.github/workflows/update-flux.yaml
vendored
Normal file
43
.github/workflows/update-flux.yaml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: update-flux
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
jobs:
|
||||
components:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Flux CLI
|
||||
uses: fluxcd/flux2/action@main
|
||||
|
||||
- name: Setup Kubernetes
|
||||
uses: engineerd/setup-kind@v0.5.0
|
||||
|
||||
- name: Check for updates
|
||||
id: update
|
||||
run: |
|
||||
UGLY_VERSION="$(flux -v)"
|
||||
VERSION="v${UGLY_VERSION#*flux version }"
|
||||
flux install \
|
||||
--network-policy=false \
|
||||
--export > ./cluster/flux-system/gotk-components.yaml
|
||||
|
||||
echo "::set-output name=flux_version::$VERSION"
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: flux/update-${{ steps.update.outputs.flux_version }}
|
||||
delete-branch: true
|
||||
commit-message: Update Flux components to ${{ steps.update.outputs.flux_version }} [ci-skip]
|
||||
title: Update Flux components to ${{ steps.update.outputs.flux_version }} [ci-skip]
|
||||
signoff: true
|
||||
assignees: "auricom"
|
||||
body: |
|
||||
Release notes: https://github.com/fluxcd/flux2/releases/tag/${{ steps.update.outputs.flux_version }}
|
||||
labels: flux/update
|
Reference in New Issue
Block a user