Skip to content

Commit

Permalink
Merge pull request #1 from dfds/feature/cloudplatform-591
Browse files Browse the repository at this point in the history
Add Renovate and auto-release
  • Loading branch information
avnes authored Feb 4, 2022
2 parents 20caf0e + 78e3a77 commit 84455e9
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Auto release on merge

on:
push:
branches: ["master", "main"]

jobs:
auto-release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: patch
tag_prefix: ""
18 changes: 18 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Renovate
on:
schedule:
- cron: "0 5 * * *" # Every day at 05.00
workflow_dispatch:

# Depends on RENOVATE_TOKEN and RENOVATE_GIT_AUTHOR set as repository secrets.
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Self-hosted Renovate
uses: renovatebot/github-action@v31.28.2
with:
configurationFile: renovate.json
token: ${{ secrets.RENOVATE_TOKEN }}
41 changes: 41 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"branchPrefix": "feature/renovate/",
"dryRun": false,
"username": "devex-sa",
"onboarding": false,
"platform": "github",
"repositories": [
"dfds/secret-scanner-docker"
],
"packageRules": [{
"matchUpdateTypes": [
"pin",
"digest",
"patch",
"lockFileMaintenance"
],
"stabilityDays": 1,
"automerge": true,
"matchCurrentVersion": "!/^0/",
"ignoreTests": true,
"dependencyDashboardApproval": false
}, {
"matchUpdateTypes": [
"minor"
],
"stabilityDays": 7,
"automerge": false,
"matchCurrentVersion": "!/^0/",
"ignoreTests": true,
"dependencyDashboardApproval": false
}, {
"matchUpdateTypes": [
"major"
],
"stabilityDays": 14,
"automerge": false,
"dependencyDashboard": true,
"dependencyDashboardApproval": false
}]
}

0 comments on commit 84455e9

Please sign in to comment.