-
Notifications
You must be signed in to change notification settings - Fork 526
ci: self-hosted renovate #7690
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
Merged
+39
−0
Merged
ci: self-hosted renovate #7690
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c046a4c
ci: Add self-hosted Renovate workflow with CodeArtifact authentication
matthewelwell c4850ce
ci: Fix renovatebot/github-action version to v46.1.14
matthewelwell a7698ea
ci: Configure Renovate repository and git author
matthewelwell 89ddc60
ci: Use GitHub App token for Renovate authentication
matthewelwell 821234f
ci: Use depot runner for Renovate workflow
matthewelwell da0ca70
ci: Recreate closed Renovate PRs automatically
matthewelwell 063bcaa
ci: Run Renovate via npx instead of Docker action
matthewelwell f2c08b4
LOG_LEVEL=DEBUG
matthewelwell ad8c60d
revert claude hallucination
matthewelwell a40089c
ci: Pass CodeArtifact credentials to Renovate via RENOVATE_HOST_RULES
matthewelwell ccfed35
ci: Always rebase Renovate branches to prevent stale branch deadlock
matthewelwell 008d96d
Remove temporary changes to workflow
matthewelwell ee19f8e
Update to use Flagsmith Engineering GH app
matthewelwell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Renovate | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 3 * * *' | ||
| workflow_dispatch: {} | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write # For CodeArtifact OIDC | ||
|
|
||
| jobs: | ||
| renovate: | ||
| runs-on: depot-ubuntu-latest-16 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Authenticate with CodeArtifact | ||
| id: codeartifact | ||
| uses: ./.github/actions/codeartifact-login | ||
|
|
||
| - name: Generate GitHub App token | ||
| id: app-token | ||
| uses: actions/create-github-app-token@v1 | ||
| with: | ||
| app-id: ${{ vars.FLAGSMITH_ENGINEERING_GH_APP_ID }} | ||
| private-key: ${{ secrets.FLAGSMITH_ENGINEERING_GH_APP_PRIVATE_KEY }} | ||
|
|
||
| - name: Run Renovate | ||
| uses: renovatebot/github-action@v46.1.14 | ||
| env: | ||
| RENOVATE_TOKEN: ${{ steps.app-token.outputs.token }} | ||
| RENOVATE_REPOSITORIES: ${{ github.repository }} | ||
| RENOVATE_GIT_AUTHOR: ${{ vars.RENOVATE_GIT_AUTHOR }} | ||
|
khvn26 marked this conversation as resolved.
|
||
| RENOVATE_HOST_RULES: >- | ||
| [{"matchHost":"flagsmith-production-084060095745.d.codeartifact.eu-west-2.amazonaws.com","username":"aws","password":"${{ steps.codeartifact.outputs.token }}"}] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.