mirror of
https://github.com/ahinko/home-ops
synced 2026-04-21 13:37:24 +00:00
feat: immich + vchord versioning
This commit is contained in:
parent
93970b3b10
commit
3c8a891ac3
5 changed files with 76 additions and 1 deletions
13
.github/scripts/immich-vchord-allowed-version.sh
vendored
Executable file
13
.github/scripts/immich-vchord-allowed-version.sh
vendored
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# renovate: datasource=docker depName=ghcr.io/immich-app/immich-server
|
||||
version=v2.4.1
|
||||
|
||||
# Get file from immich repo that includes VectorChord version range
|
||||
SOURCE_CONSTANTS=$(curl -s https://raw.githubusercontent.com/immich-app/immich/$version/server/src/constants.ts)
|
||||
|
||||
# Extract the upper bound constraint (e.g., "<0.6" or "<=0.6") from VECTORCHORD_VERSION_RANGE
|
||||
ALLOWED_VERSION=$(echo "$SOURCE_CONSTANTS" | sed -n "s/.*VECTORCHORD_VERSION_RANGE = '>=[0-9.]* \(<[=]*[0-9.]*\)'.*/\1/p")
|
||||
|
||||
# Update renovate config for vchord-scratch
|
||||
sed -i "s/allowedVersions: \"<[^\"]*\", \/\/ immich/allowedVersions: \"${ALLOWED_VERSION}\", \/\/ immich/" .renovate/allowedVersions.json5
|
||||
45
.github/workflows/scan-immich-vchord-version.yaml
vendored
Normal file
45
.github/workflows/scan-immich-vchord-version.yaml
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
---
|
||||
name: Scan supported VChord versions in Immich
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- ".github/scripts/immich-vchord-allowed-version.sh"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-${{ github.workflow }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
scan-versions:
|
||||
name: Check if we should allow newer VChord versions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Generate Token
|
||||
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
|
||||
id: generate-token
|
||||
with:
|
||||
app-id: "${{ secrets.HOMEOPS_BOT_APP_ID }}"
|
||||
private-key: "${{ secrets.HOMEOPS_BOT_PRIVATE_KEY }}"
|
||||
|
||||
- name: Scan files
|
||||
run: |
|
||||
.github/scripts/immich-vchord-allowed-version.sh
|
||||
|
||||
- uses: gr2m/create-or-update-pull-request-action@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
|
||||
with:
|
||||
title: "feat(immich): update allowed VChord version"
|
||||
body: "Immich supports a new VChord version. The allowedVersions file has been updated."
|
||||
branch: "update-allowed-vchord-version"
|
||||
path: ".renovate/allowedVersions.json5"
|
||||
commit-message: "Update allowedVersions.json5 with new VChord version."
|
||||
labels: size/XS, area/database, type/minor
|
||||
update-pull-request-title-and-body: true
|
||||
|
|
@ -7,7 +7,7 @@ on: # yamllint disable-line rule:truthy
|
|||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "kubernetes/talos/machineconfig.yaml.j2"
|
||||
- ".github/scripts/kubernetes-version.sh"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-${{ github.workflow }}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,12 @@
|
|||
"registry.k8s.io/kubectl",
|
||||
],
|
||||
},
|
||||
{
|
||||
allowedVersions: "<0.6", // immich dependency
|
||||
matchDatasources: ["docker"],
|
||||
matchPackageNames: [
|
||||
"ghcr.io/tensorchord/vchord-scratch",
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,5 +59,15 @@
|
|||
datasourceTemplate: "docker",
|
||||
versioningTemplate: "regex:^(?<major>\\d+)\\.(?<minor>\\d+)-(?<patch>\\d+)-(?<compatibility>.*)$",
|
||||
},
|
||||
{
|
||||
customType: "regex",
|
||||
description: "Tensorchord Vchord container",
|
||||
fileMatch: [
|
||||
"kubernetes/apps/databases/postgres18/app/.+\\.yaml$",
|
||||
],
|
||||
matchStrings: ["reference: (?<depName>.*?):(?<currentValue>.*)"],
|
||||
datasourceTemplate: "docker",
|
||||
versioningTemplate: "regex:^pg18-v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)$",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue