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:
auricom
2020-12-05 09:15:39 +01:00
parent a69477e033
commit 92f83b38f0
10 changed files with 332 additions and 107 deletions

View 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
View 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