-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (58 loc) · 2.35 KB
/
update-catalog.yaml
File metadata and controls
62 lines (58 loc) · 2.35 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
name: update-catalog
on:
workflow_dispatch:
schedule:
- cron: "0 7 * * 1" # every Monday at 7 AM (UTC)
permissions:
contents: read
jobs:
update-latest:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup flux-schema
uses: ./actions/setup
- name: Setup flux-operator
uses: controlplaneio-fluxcd/flux-operator/actions/setup@8fc996ab460c0aee9e02397fefaad1ff78f4e7bb # v0.48.0
- name: Reset catalog directory
run: rm -rf ./catalog/latest && mkdir -p ./catalog/latest
- name: Update Kubernetes schemas
run: ./scripts/gen-k8s-schemas.sh -d ./catalog/latest
- name: Update Gateway API schemas
run: ./scripts/gen-crd-schemas.sh -r kubernetes-sigs/gateway-api -d ./catalog/latest
- name: Update Flux schemas
run: ./scripts/gen-flux-schemas.sh -d ./catalog/latest
- name: Update Flagger schemas
run: ./scripts/gen-crd-schemas.sh -r fluxcd/flagger -p kustomize/kubernetes -d ./catalog/latest
- name: Update Flux Operator schemas
run: ./scripts/gen-crd-schemas.sh -r controlplaneio-fluxcd/flux-operator -d ./catalog/latest
- name: Update README versions
run: ./scripts/update-catalog-readme.sh -f ./catalog/README.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
branch: update-catalog-latest
title: "chore: update catalog/latest"
commit-message: "chore: update catalog/latest"
committer: GitHub <noreply@github.com>
author: fluxcdbot <fluxcdbot@users.noreply.github.com>
signoff: true
body: |
Automated update of `catalog/latest/`:
- Kubernetes: ${{ env.K8S_VERSION }}
- Gateway API: ${{ env.GATEWAY_API_VERSION }}
- Flux: ${{ env.FLUX_VERSION }}
- Flagger: ${{ env.FLAGGER_VERSION }}
- Flux Operator: ${{ env.FLUX_OPERATOR_VERSION }}
labels: |
area/catalog
add-paths: |
catalog/latest
catalog/README.md