Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable renovate bot #1

Merged
merged 7 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
anthr76 marked this conversation as resolved.
Show resolved Hide resolved
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"
Loading