Skip to content

Commit

Permalink
feat: enable renovate bot (#1)
Browse files Browse the repository at this point in the history
* feat: enable renovate bot

Signed-off-by: Anthony Rabbito <[email protected]>

* chore: add CODEOWNERS

Signed-off-by: Anthony Rabbito <[email protected]>

* fix: use self hosted infra for renovate

Signed-off-by: Anthony Rabbito <[email protected]>

* Revert "fix: use self hosted infra for renovate"

This reverts commit e00ed55.

* fix: set branch

Signed-off-by: Anthony Rabbito <[email protected]>

* fix: registryUrl for container

Signed-off-by: Anthony Rabbito <[email protected]>

* fix: add missed image LC

Signed-off-by: Anthony Rabbito <[email protected]>

---------

Signed-off-by: Anthony Rabbito <[email protected]>
  • Loading branch information
anthr76 authored Jun 28, 2024
1 parent 863e8db commit 89e1db1
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @coreweave/app-platforms
5 changes: 5 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
extends: [
"github>coreweave/renovate-config"
],
}
1 change: 1 addition & 0 deletions .github/workflows/publish-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
context: ./
file: ./Docker/Dockerfile
build-args: |
# renovate: depName=tailscale.com datasource=go
VERSION=${{ env.UPSTREAM_TS_VERSION }}
tags: |
ghcr.io/${{ github.repository }}:${{ env.UPSTREAM_TS_VERSION }}
64 changes: 64 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Renovate"

on:
workflow_dispatch:
inputs:
dryRun:
description: Dry Run
default: "false"
required: false
logLevel:
description: Log Level
default: debug
required: false
version:
description: Renovate version
default: latest
required: false
schedule:
- cron: "0 * * * *" # Every hour
push:
branches: ["main"]
paths:
- .github/renovate.json5
- .github/renovate/**.json5

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

env:
LOG_LEVEL: "${{ inputs.logLevel || 'debug' }}"
RENOVATE_AUTODISCOVER: true
RENOVATE_AUTODISCOVER_FILTER: "${{ github.repository }}"
RENOVATE_DRY_RUN: "${{ inputs.dryRun == true }}"
RENOVATE_PLATFORM: github
RENOVATE_PLATFORM_COMMIT: true
WORKFLOW_RENOVATE_VERSION: "${{ inputs.version || 'latest' }}"

jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: "${{ secrets.ORG_RENOVATE_CLIENTID }}"
private-key: "${{ secrets.ORG_RENOVATE_PRIVATEKEY }}"
owner: "${{ github.repository_owner }}"

- name: Checkout
uses: actions/checkout@v4
with:
token: "${{ steps.app-token.outputs.token }}"

- name: Renovate
uses: renovatebot/[email protected]
with:
configurationFile: .github/renovate.json5
token: "${{ steps.app-token.outputs.token }}"
renovate-version: "${{ env.WORKFLOW_RENOVATE_VERSION }}"
1 change: 1 addition & 0 deletions chart/tailscale-derp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ name: tailscale-derp
description: Run a custom tailscale derp server on Kubernetes.
type: application
version: 0.2.0
# renovate: depName=ghcr.io/coreweave/tailscale-derp datasource=docker
appVersion: "v1.68.0"

0 comments on commit 89e1db1

Please sign in to comment.