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
57 changes: 57 additions & 0 deletions .github/renovate-openim.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"enabledManagers": ["custom.regex"],
"dependencyDashboard": false,
"branchPrefix": "renovate-bot/",
"commitMessagePrefix": "chore(deps):",
"prConcurrentLimit": 1,
"gitIgnoredAuthors": ["41898282+github-actions[bot]@users.noreply.github.com"],

"customManagers": [
{
"customType": "regex",
"description": "Update OpenIM Docker image tags in .env",
"fileMatch": ["^\\.env$"],
"datasourceTemplate": "docker",
"matchStrings": [
"(?:^|\\n)OPENIM_WEB_FRONT_IMAGE=(?<depName>openim/openim-web-front):(?<currentValue>[^\\s#]+)",
"(?:^|\\n)OPENIM_ADMIN_FRONT_IMAGE=(?<depName>openim/openim-admin-front):(?<currentValue>[^\\s#]+)",
"(?:^|\\n)OPENIM_SERVER_IMAGE=(?<depName>openim/openim-server):(?<currentValue>[^\\s#]+)",
"(?:^|\\n)OPENIM_CHAT_IMAGE=(?<depName>openim/openim-chat):(?<currentValue>[^\\s#]+)"
]
}
],

"packageRules": [
{
"matchDatasources": ["docker"],
"matchPackageNames": [
"openim/openim-web-front",
"openim/openim-admin-front",
"openim/openim-server",
"openim/openim-chat"
],
"groupName": "OpenIM Docker images",
"groupSlug": "openim-images"
},
{
"matchDatasources": ["docker"],
"matchPackageNames": [
"openim/openim-web-front",
"openim/openim-admin-front"
],
"allowedVersions": "/^release-v\\d+\\.\\d+\\.\\d+(?:-patch\\.\\d+)?$/",
"versioning": "regex:^release-v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(?:-patch\\.(?<build>\\d+))?$"
},
{
"matchDatasources": ["docker"],
"matchPackageNames": [
"openim/openim-server",
"openim/openim-chat"
],
"allowedVersions": "/^v\\d+\\.\\d+\\.\\d+(?:-patch\\.\\d+)?$/",
"versioning": "regex:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(?:-patch\\.(?<build>\\d+))?$"
}
]
}
32 changes: 32 additions & 0 deletions .github/workflows/update-docker-image-tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Update OpenIM Image Tags

on:
workflow_dispatch:
schedule:
- cron: "0 3 * * 1"

concurrency:
group: update-openim-image-tags
cancel-in-progress: true

jobs:
renovate:
name: Check OpenIM image tags
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v7

- name: Run Renovate
uses: renovatebot/github-action@v46.1.17
with:
configurationFile: .github/renovate-openim.json5
token: ${{ github.token }}
env:
RENOVATE_ONBOARDING: "false"
RENOVATE_REQUIRE_CONFIG: ignored
RENOVATE_REPOSITORIES: ${{ github.repository }}
Loading