-
Notifications
You must be signed in to change notification settings - Fork 9
94 lines (85 loc) · 3.38 KB
/
dependencies.yaml
File metadata and controls
94 lines (85 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Makefile Dependencies
on:
schedule:
# everyday at midnight.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
k0s_minor_version:
description: 'The minor version of k0s to update the dependencies for'
required: false
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache-dependency-path: "**/*.sum"
- name: K0s
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_K0S_MINOR_VERSION: ${{ inputs.k0s_minor_version }}
run: |
K0S_MINOR_VERSION=$INPUT_K0S_MINOR_VERSION
if [ -z "$K0S_MINOR_VERSION" ]; then
K0S_MINOR_VERSION=$(make print-K0S_MINOR_VERSION)
fi
echo "k0s minor version: $K0S_MINOR_VERSION"
./scripts/k0s-update-dependencies.sh "$K0S_MINOR_VERSION"
- name: Troubleshoot
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
version=$(gh release list --repo replicatedhq/troubleshoot --json name,isLatest | jq -r '.[] | select(.isLatest)|.name')
echo "troubleshoot version: $version"
sed -i "/^TROUBLESHOOT_VERSION/c\TROUBLESHOOT_VERSION = $version" versions.mk
- name: Helm
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
version=$(gh release list --repo helm/helm --json tagName,createdAt | jq -r '.[] | select(.tagName | startswith("v4.")) | .tagName' | head -1)
echo "helm version: $version"
sed -i "/^HELM_VERSION/c\HELM_VERSION = $version" versions.mk
- name: FIO
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
version=$(gh release list --repo axboe/fio --json name,isLatest | jq -r '.[] | select(.isLatest)|.name' | grep -oE '[0-9]+\.[0-9]+(\.[0-9]+)?')
echo "fio version: $version"
sed -i "/^FIO_VERSION/c\FIO_VERSION = $version" versions.mk
- name: Controller Tools
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
version=$(gh release list --repo kubernetes-sigs/controller-tools --json name,isLatest | jq -r '.[] | select(.isLatest)|.name')
echo "controller-tools version: $version"
sed -i "/^CONTROLLER_TOOLS_VERSION/c\CONTROLLER_TOOLS_VERSION = $version" versions.mk
# update CRDs
make -C kinds generate
make -C operator manifests
- name: Kustomize
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
version=$(gh release list --repo kubernetes-sigs/kustomize --json name,createdAt | jq -r '.[] | select(.name | startswith("kustomize/")) | .name' | head -1 | sed 's/kustomize\///')
echo "kustomize version: $version"
sed -i "/^KUSTOMIZE_VERSION/c\KUSTOMIZE_VERSION = $version" versions.mk
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GH_PAT }}
commit-message: Update Makefile versions
title: 'Update Makefile versions'
branch: automation/update-makefile
delete-branch: true
labels: |
automated-pr
makefile
type::chore
draft: false
body: |
Automated changes by the [cron-makefile-dependencies](https://github.com/replicatedhq/embedded-cluster/blob/main/.github/workflows/dependencies.yaml) GitHub action