forked from linux/WebHosting_DMZ
Add opt-in automated image updates with renovate
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:recommended"
|
||||
],
|
||||
"dependencyDashboard": false,
|
||||
"prBodyColumns": [
|
||||
"Package",
|
||||
"Type",
|
||||
// Default has "Update" but seems to be blocked by the WAF
|
||||
"Change"
|
||||
],
|
||||
"enabledManagers": [
|
||||
"custom.regex"
|
||||
],
|
||||
"customManagers": [
|
||||
{
|
||||
"customType": "regex",
|
||||
"description": "Compose services that opt in with a \"# renovate: enabled\" marker",
|
||||
"managerFilePatterns": [
|
||||
"/(^|/)docker-compose\\.ya?ml$/"
|
||||
],
|
||||
"matchStrings": [
|
||||
"#[ \\t]*renovate:[ \\t]*enabled[ \\t]*\\n[ \\t]+image:[ \\t]*[\"']?(?<depName>[^\\s\"'${}@]+):(?<currentValue>[A-Za-z0-9_][A-Za-z0-9._-]*)(?:@(?<currentDigest>sha256:[0-9a-f]+))?[\"']?[ \\t]*(?:\\n|$)"
|
||||
],
|
||||
"datasourceTemplate": "docker",
|
||||
"versioningTemplate": "docker"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
name: Renovate
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '@daily'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
dry_run:
|
||||
description: 'Run without creating branches or pull requests'
|
||||
type: boolean
|
||||
default: false
|
||||
log_level:
|
||||
description: 'Renovate log level'
|
||||
type: choice
|
||||
options:
|
||||
- info
|
||||
- debug
|
||||
default: info
|
||||
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/renovatebot/renovate:44
|
||||
steps:
|
||||
- name: Run Renovate
|
||||
run: renovate
|
||||
env:
|
||||
LOG_LEVEL: ${{ inputs.log_level || 'info' }}
|
||||
RENOVATE_PLATFORM: gitea
|
||||
RENOVATE_ENDPOINT: ${{ github.server_url }}/api/v1
|
||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||
RENOVATE_CONFIG_FILE_NAMES: .gitea/renovate.json
|
||||
RENOVATE_ONBOARDING: 'false'
|
||||
RENOVATE_AUTODISCOVER: 'false'
|
||||
RENOVATE_REPOSITORIES: ${{ github.repository }}
|
||||
RENOVATE_FORK_PROCESSING: enabled
|
||||
RENOVATE_DRY_RUN: ${{ inputs.dry_run == 'true' && 'full' || 'null' }}
|
||||
@@ -378,6 +378,7 @@ services:
|
||||
- /mount/rocrate_qa:/rocrate:rw
|
||||
|
||||
scicat-rocrate:
|
||||
# renovate: enabled
|
||||
image: gitea.psi.ch/data-catalog-services/scicat-rocrate:2.6.5
|
||||
container_name: scicat-rocrate
|
||||
restart: always
|
||||
|
||||
Reference in New Issue
Block a user