feat: preview instances for 5 most recent releases (#1626)

This commit is contained in:
bo0tzz
2026-05-25 15:09:58 -05:00
committed by GitHub
parent b69f10ca5d
commit 8a6fc49153
3 changed files with 24 additions and 9 deletions
@@ -11,26 +11,25 @@ spec:
- apiVersion: fluxcd.controlplane.io/v1
kind: ResourceSetInputProvider
name: immich-github-branches
inputs:
- branch: release
# renovate: datasource=github-releases depName=immich-app/immich
tag: "v2.7.5"
- apiVersion: fluxcd.controlplane.io/v1
kind: ResourceSetInputProvider
name: immich-github-tags
resourcesTemplate: |
<<- $ctx := dict >>
<<- if hasKey inputs "author" >>
<<- $name := list "pr" inputs.id | join "-" >>
<<- $_ := set $ctx "name" $name >>
<<- else >>
<<- $tag := list "commit" inputs.sha | join "-" >>
<<- $_ := set $ctx "tag" $tag >>
<<- else if hasKey inputs "branch" >>
<<- $_ := set $ctx "name" inputs.branch >>
<<- end >>
<<- if hasKey inputs "sha" >>
<<- $tag := list "commit" inputs.sha | join "-" >>
<<- $_ := set $ctx "tag" $tag >>
<<- else >>
<<- $_ := set $ctx "name" (inputs.tag | slugify) >>
<<- $_ := set $ctx "tag" inputs.tag >>
<<- end >>
---
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
@@ -20,3 +20,15 @@ spec:
url: https://github.com/immich-app/immich
filter:
includeBranch: "^main$"
---
apiVersion: fluxcd.controlplane.io/v1
kind: ResourceSetInputProvider
metadata:
name: immich-github-tags
namespace: preview
spec:
type: GitHubTag
url: https://github.com/immich-app/immich
filter:
semver: ">=2.0.0"
limit: 5
@@ -35,5 +35,9 @@ spec:
kind: ResourceSetInputProvider
name: immich-github-branches
namespace: preview
- apiVersion: fluxcd.controlplane.io/v1
kind: ResourceSetInputProvider
name: immich-github-tags
namespace: preview
# NOTE: The external ingress for this webhook goes to the notification-controller through apps/infrastructure/flux-system/addons/webhooks/github/ingress.yaml