From bbddff4ebb28005b0547dc96c0353a94c7c7f3fe Mon Sep 17 00:00:00 2001 From: dsx137 <70027572+dsx137@users.noreply.github.com> Date: Tue, 7 Jul 2026 18:33:54 +0800 Subject: [PATCH 1/3] feat(ci): add docker image tag updater --- .github/renovate-openim.json5 | 56 +++++++++++++++++++ .../workflows/update-docker-image-tags.yml | 31 ++++++++++ 2 files changed, 87 insertions(+) create mode 100644 .github/renovate-openim.json5 create mode 100644 .github/workflows/update-docker-image-tags.yml diff --git a/.github/renovate-openim.json5 b/.github/renovate-openim.json5 new file mode 100644 index 0000000..10bd469 --- /dev/null +++ b/.github/renovate-openim.json5 @@ -0,0 +1,56 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended"], + "enabledManagers": ["custom.regex"], + "dependencyDashboard": false, + "branchPrefix": "renovate-bot/", + "commitMessagePrefix": "chore(deps):", + "prConcurrentLimit": 1, + + "customManagers": [ + { + "customType": "regex", + "description": "Update OpenIM Docker image tags in .env", + "fileMatch": ["^\\.env$"], + "datasourceTemplate": "docker", + "matchStrings": [ + "(?:^|\\n)OPENIM_WEB_FRONT_IMAGE=(?openim/openim-web-front):(?[^\\s#]+)", + "(?:^|\\n)OPENIM_ADMIN_FRONT_IMAGE=(?openim/openim-admin-front):(?[^\\s#]+)", + "(?:^|\\n)OPENIM_SERVER_IMAGE=(?openim/openim-server):(?[^\\s#]+)", + "(?:^|\\n)OPENIM_CHAT_IMAGE=(?openim/openim-chat):(?[^\\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(?\\d+)\\.(?\\d+)\\.(?\\d+)(?:-patch\\.(?\\d+))?$" + }, + { + "matchDatasources": ["docker"], + "matchPackageNames": [ + "openim/openim-server", + "openim/openim-chat" + ], + "allowedVersions": "/^v\\d+\\.\\d+\\.\\d+(?:-patch\\.\\d+)?$/", + "versioning": "regex:^v(?\\d+)\\.(?\\d+)\\.(?\\d+)(?:-patch\\.(?\\d+))?$" + } + ] +} diff --git a/.github/workflows/update-docker-image-tags.yml b/.github/workflows/update-docker-image-tags.yml new file mode 100644 index 0000000..af2fadf --- /dev/null +++ b/.github/workflows/update-docker-image-tags.yml @@ -0,0 +1,31 @@ +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 From 6b093c96def9547ebbd586267e16ab1d0e3c4913 Mon Sep 17 00:00:00 2001 From: dsx137 <70027572+dsx137@users.noreply.github.com> Date: Tue, 7 Jul 2026 18:38:57 +0800 Subject: [PATCH 2/3] feat(ci): add docker image tag updater --- .github/workflows/update-docker-image-tags.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-docker-image-tags.yml b/.github/workflows/update-docker-image-tags.yml index af2fadf..e753773 100644 --- a/.github/workflows/update-docker-image-tags.yml +++ b/.github/workflows/update-docker-image-tags.yml @@ -29,3 +29,4 @@ jobs: env: RENOVATE_ONBOARDING: "false" RENOVATE_REQUIRE_CONFIG: ignored + RENOVATE_REPOSITORIES: ${{ github.repository }} From 7a536ead46ba951bc13bab2a0a010620bab64831 Mon Sep 17 00:00:00 2001 From: dsx137 <70027572+dsx137@users.noreply.github.com> Date: Wed, 8 Jul 2026 10:18:12 +0800 Subject: [PATCH 3/3] fix(renovate): ignore GitHub Actions bot --- .github/renovate-openim.json5 | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/renovate-openim.json5 b/.github/renovate-openim.json5 index 10bd469..1181ea0 100644 --- a/.github/renovate-openim.json5 +++ b/.github/renovate-openim.json5 @@ -6,6 +6,7 @@ "branchPrefix": "renovate-bot/", "commitMessagePrefix": "chore(deps):", "prConcurrentLimit": 1, + "gitIgnoredAuthors": ["41898282+github-actions[bot]@users.noreply.github.com"], "customManagers": [ {