Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions kubernetes/apps/preview/github-previews/app/resource-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions kubernetes/apps/preview/github-previews/app/rsip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions kubernetes/apps/preview/github-previews/app/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading