Skip to content

Commit

Permalink
ci: implement renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
strophy committed Dec 6, 2022
1 parent a7ca839 commit 8424930
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 54 deletions.
167 changes: 167 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"branchPrefix": "renovate/",
"dryRun": null,
"username": "renovate-release",
"gitAuthor": "Renovate Bot <[email protected]>",
"onboarding": false,
"platform": "github",
"includeForks": true,
"repositories": ["rvolosatovs/docker-protobuf"],
"enabledManagers": ["regex"],
"regexManagers": [
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["ALPINE_IMAGE_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "alpine",
"datasourceTemplate": "docker"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["DART_IMAGE_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "dart",
"datasourceTemplate": "docker"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["GO_IMAGE_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "golang",
"datasourceTemplate": "docker",
"extractVersionTemplate": "^(?<version>.*)-alpine$"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["GRPC_GATEWAY_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "grpc-ecosystem/grpc-gateway",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["GRPC_RUST_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "stepancheg/grpc-rust",
"datasourceTemplate": "github-tags"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["GRPC_SWIFT_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "grpc/grpc-swift",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["GRPC_WEB_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "grpc/grpc-web",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["NODE_IMAGE_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "node",
"datasourceTemplate": "docker"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_DART_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "google/protobuf.dart",
"datasourceTemplate": "github-tags",
"extractVersionTemplate": "^protoc_plugin-(?<version>.*)$"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_DOC_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "pseudomuto/protoc-gen-doc",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_GO_GRPC_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "grpc/grpc-go",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_GO_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "protocolbuffers/protobuf-go",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_GOGO_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "gogo/protobuf",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_GORM_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "infobloxopen/protoc-gen-gorm",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_GOTEMPLATE_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "moul/protoc-gen-gotemplate",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_GOVALIDATORS_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "mwitkow/go-proto-validators",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_GQL_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "danielvladco/go-proto-gql",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_JSONSCHEMA_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "chrusty/protoc-gen-jsonschema",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_LINT_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "ckaznocha/protoc-gen-lint",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_RUST_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "stepancheg/rust-protobuf",
"datasourceTemplate": "github-tags"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_TS_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "ts-protoc-gen",
"datasourceTemplate": "npm"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_VALIDATE_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "bufbuild/protoc-gen-validate",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["RUST_IMAGE_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "rust",
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["SWIFT_IMAGE_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "swift",
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["UPX_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "upx/upx",
"datasourceTemplate": "github-releases"
}
]
}
12 changes: 6 additions & 6 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ jobs:
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
build-args: |
ALPINE_VERSION=${{ env.ALPINE_VERSION }}
DART_VERSION=${{ env.DART_VERSION }}
GO_VERSION=${{ env.GO_VERSION }}
ALPINE_IMAGE_VERSION=${{ env.ALPINE_IMAGE_VERSION }}
DART_IMAGE_VERSION=${{ env.DART_IMAGE_VERSION }}
GO_IMAGE_VERSION=${{ env.GO_IMAGE_VERSION }}
GOOGLE_API_VERSION=${{ env.GOOGLE_API_VERSION }}
GRPC_GATEWAY_VERSION=${{ env.GRPC_GATEWAY_VERSION }}
GRPC_RUST_VERSION=${{ env.GRPC_RUST_VERSION }}
GRPC_SWIFT_VERSION=${{ env.GRPC_SWIFT_VERSION }}
GRPC_WEB_VERSION=${{ env.GRPC_WEB_VERSION }}
NODE_VERSION=${{ env.NODE_VERSION }}
NODE_IMAGE_VERSION=${{ env.NODE_IMAGE_VERSION }}
PROTOC_GEN_DART_VERSION=${{ env.PROTOC_GEN_DART_VERSION }}
PROTOC_GEN_DOC_VERSION=${{ env.PROTOC_GEN_DOC_VERSION }}
PROTOC_GEN_GO_GRPC_VERSION=${{ env.PROTOC_GEN_GO_GRPC_VERSION }}
Expand All @@ -87,6 +87,6 @@ jobs:
PROTOC_GEN_RUST_VERSION=${{ env.PROTOC_GEN_RUST_VERSION }}
PROTOC_GEN_TS_VERSION=${{ env.PROTOC_GEN_TS_VERSION }}
PROTOC_GEN_VALIDATE_VERSION=${{ env.PROTOC_GEN_VALIDATE_VERSION }}
RUST_VERSION=${{ env.RUST_VERSION }}
SWIFT_VERSION=${{ env.SWIFT_VERSION }}
RUST_IMAGE_VERSION=${{ env.RUST_IMAGE_VERSION }}
SWIFT_IMAGE_VERSION=${{ env.SWIFT_IMAGE_VERSION }}
UPX_VERSION=${{ env.UPX_VERSION }}
19 changes: 19 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Renovate

on:
workflow_dispatch:
schedule:
- cron: '30 5 * * 0'

jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Self-hosted Renovate
uses: renovatebot/[email protected]
with:
configurationFile: .github/renovate.json
token: ${{ secrets.RENOVATE_TOKEN }}
Loading

0 comments on commit 8424930

Please sign in to comment.