Skip to content

Conversation

@ohdearaugustin
Copy link
Collaborator

  • read the CONTRIBUTING guidelines
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • [] added unit tests
  • [] added integration tests
  • [] updated documentation if needed
  • [] updated CHANGELOG.md

This will implement #323.
To make the renovatebot work, we would need to create a github app. (I decided to implement it with an app, as the permissions can be set more specifically)

In the developer setting create a new app.

  1. Set GitHub App name (eg.renovatebot-headscale, or something like that)
  2. Set Homepage URL to https://github.com/juanfont/headscale
  3. Set permissions:
  • Administration Read-only
  • Contents Read & write
  • Issues Read & write
  • Metadata Read-only
  • Pull requests Read & write
  • Workflows Read & write
  • Everything else leave on No access
  1. Install App "Only select repositories" --> juanfont/headscale
  2. Generate Private Key (this will let you download a zip with a cert inside)
  3. Add to the Secrets Actions of the repository two new secrets
  4. RENOVATEBOT_APP_ID with the content App ID
  5. RENOVATEBOT_SECRET with the private key encoded in base64 (cat .<CURRENT_DATE>.private-key.pem | base64 -w 0 && echo
  6. Merge PR

After the setup of renovatebot it run it manually for the first time. This will result in some PRs to update some github actions. After that the renovatebot will look automatically on the 5th and 20th of each month for updates. Otherwise it will spam a lot of PRs for update. This can be reconfigured if needed.

"includeForks": true,
"repositories": ["juanfont/headscale"],
"platform": "github",
"packageRules": [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make it also update the go version in github actions?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The regexManagers will update the go-verisons of the github actions, see line 26.

Copy link
Collaborator

@kradalby kradalby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll approve this, but @juanfont has to do the steps

@juanfont juanfont merged commit 1b87396 into juanfont:main Feb 22, 2022
@juanfont
Copy link
Owner

Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants