mirror of
https://github.com/immich-app/devtools.git
synced 2026-09-30 13:23:00 +08:00
feat: preview instances for 5 most recent releases (#1626)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user