Skip to content

Commit

Permalink
Add action
Browse files Browse the repository at this point in the history
  • Loading branch information
jlandowner committed Apr 14, 2024
1 parent 73a709e commit d533fa8
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/check-for-updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Check for updates of remote charts

on:
schedule:
- cron: "0 0 * * 5" # every Friday at 00:00

jobs:
ingress-nginx:
runs-on: ubuntu-latest
name: Do snapshot ingress-nginx and create PR if snapshot changed
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update Snapshot
uses: jlandowner/helm-chartsnap-action@v1
id: helm-chartsnap-action
with:
chart: ingress-nginx
repo: https://kubernetes.github.io/ingress-nginx
values: example/remote/ingress-nginx.values.yaml
additional_args: "--namespace ingress-nginx --skip-tests"
update_snapshot: true

cilium:
runs-on: ubuntu-latest
name: Do snapshot cilium and create PR if snapshot changed
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update Snapshot
uses: jlandowner/helm-chartsnap-action@v1
id: helm-chartsnap-action
with:
chart: cilium
repo: https://helm.cilium.io
values: example/remote/cilium.values.yaml
additional_args: "--namespace kube-system"
update_snapshot: true

nginx-gateway-fabric:
runs-on: ubuntu-latest
name: Do snapshot nginx-gateway-fabric and create PR if snapshot changed
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update Snapshot
uses: jlandowner/helm-chartsnap-action@v1
id: helm-chartsnap-action
with:
chart: oci://ghcr.io/nginxinc/charts/nginx-gateway-fabric
values: example/remote/nginx-gateway-fabric.values.yaml
additional_args: "--namespace nginx-gateway"
update_snapshot: true

0 comments on commit d533fa8

Please sign in to comment.