Skip to content

feat: preview instances for 5 most recent releases - #1626

Merged
alextran1502 merged 1 commit into
mainfrom
feat/recent-release-previews
May 25, 2026
Merged

feat: preview instances for 5 most recent releases#1626
alextran1502 merged 1 commit into
mainfrom
feat/recent-release-previews

Conversation

@bo0tzz

@bo0tzz bo0tzz commented May 25, 2026

Copy link
Copy Markdown
Member

No description provided.

@bo0tzz
bo0tzz requested a review from a team as a code owner May 25, 2026 19:57
@github-actions

Copy link
Copy Markdown
--- kubernetes/apps/preview/github-previews/app Kustomization: flux-system/github-previews ResourceSet: preview/immich-github-previews

+++ kubernetes/apps/preview/github-previews/app Kustomization: flux-system/github-previews ResourceSet: preview/immich-github-previews

@@ -6,35 +6,35 @@

     app.kubernetes.io/name: github-previews
     kustomize.toolkit.fluxcd.io/name: github-previews
     kustomize.toolkit.fluxcd.io/namespace: flux-system
   name: immich-github-previews
   namespace: preview
 spec:
-  inputs:
-  - branch: release
-    tag: v2.7.5
   inputsFrom:
   - apiVersion: fluxcd.controlplane.io/v1
     kind: ResourceSetInputProvider
     name: immich-github-prs
   - apiVersion: fluxcd.controlplane.io/v1
     kind: ResourceSetInputProvider
     name: immich-github-branches
+  - 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
--- kubernetes/apps/preview/github-previews/app Kustomization: flux-system/github-previews Receiver: preview/preview-receiver

+++ kubernetes/apps/preview/github-previews/app Kustomization: flux-system/github-previews Receiver: preview/preview-receiver

@@ -19,10 +19,14 @@

     name: immich-github-prs
     namespace: preview
   - apiVersion: fluxcd.controlplane.io/v1
     kind: ResourceSetInputProvider
     name: immich-github-branches
     namespace: preview
+  - apiVersion: fluxcd.controlplane.io/v1
+    kind: ResourceSetInputProvider
+    name: immich-github-tags
+    namespace: preview
   secretRef:
     name: previews-webhook-secret
   type: github
 
--- kubernetes/apps/preview/github-previews/app Kustomization: flux-system/github-previews ResourceSetInputProvider: preview/immich-github-tags

+++ kubernetes/apps/preview/github-previews/app Kustomization: flux-system/github-previews ResourceSetInputProvider: preview/immich-github-tags

@@ -0,0 +1,17 @@

+---
+apiVersion: fluxcd.controlplane.io/v1
+kind: ResourceSetInputProvider
+metadata:
+  labels:
+    app.kubernetes.io/name: github-previews
+    kustomize.toolkit.fluxcd.io/name: github-previews
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: immich-github-tags
+  namespace: preview
+spec:
+  filter:
+    limit: 5
+    semver: '>=2.0.0'
+  type: GitHubTag
+  url: https://github.com/immich-app/immich
+

@alextran1502
alextran1502 merged commit 8a6fc49 into main May 25, 2026
19 checks passed
@alextran1502
alextran1502 deleted the feat/recent-release-previews branch May 25, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants