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

Try github invoked renovatee #45

Closed
wants to merge 4 commits into from
Closed
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
23 changes: 23 additions & 0 deletions .github/renovate-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# renovate: datasource=github-releases depName=clux/whyq
export YQ_VER=0.10.2
# renovate: datasource=github-releases depName=casey/just
export JUST_VER=1.28.0
# renovate: datasource=github-releases depName=BurntSushi/ripgrep
export RG_VER=14.1.0
# renovate: datasource=github-releases depName=sharkdp/fd
export FD_VER=10.2.0
# renovate: datasource=github-releases depName=chmln/sd
export SD_VER=1.0.0

apt update
apt install -y curl git protobuf-compiler

curl -sSL https://github.com/clux/whyq/releases/download/${YQ_VER}/yq-x86_64-unknown-linux-musl.tar.xz | tar xJ --strip-components=1 -C /usr/local/bin
curl -sSL https://github.com/casey/just/releases/download/${JUST_VER}/just-${JUST_VER}-x86_64-unknown-linux-musl.tar.gz | tar xz -C /usr/local/bin
curl -sSL https://github.com/BurntSushi/ripgrep/releases/download/${RG_VER}/ripgrep-${RG_VER}-x86_64-unknown-linux-musl.tar.gz | tar xz --strip-components=1 -C /usr/local/bin
curl -sSL https://github.com/sharkdp/fd/releases/download/v${FD_VER}/fd-v${FD_VER}-x86_64-unknown-linux-musl.tar.gz | tar xz --strip-components=1 -C /usr/local/bin/ --wildcards '*fd'
curl -sSL https://github.com/chmln/sd/releases/download/v${SD_VER}/sd-v${SD_VER}-x86_64-unknown-linux-musl.tar.gz | tar xz --strip-components=1 -C /usr/local/bin/ --wildcards '*sd'

runuser -u ubuntu renovate
30 changes: 30 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Renovate
on:
push: # while testing
#schedule:
# - cron: "0/15 * * * *"
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Self-hosted Renovate
uses: renovatebot/[email protected]
with:
token: ${{ secrets.RENOVATE_TOKEN }}
docker-cmd-file: .github/renovate-entrypoint.sh
docker-user: root
configurationFile: renovate.json5
env:
LOG_LEVEL: 'debug'
# hopefully not too late...
- run: cargo fmt
2 changes: 1 addition & 1 deletion renovate.json5
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [
"config:base",
":gitSignOff",
":disableDependencyDashboard"
],
Expand All @@ -14,6 +13,7 @@
"This PR bumps the Kubernetes version in the justfile and runs just renovate.",
"{{#if isMinor}}Please check for inconsistencies in the new version{{/if}}",
],
branchPrefix: "ghreno",
customManagers: [
{
customType: "regex",
Expand Down
Loading