Feature/release workflow (#133) #130
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
| name: Renovate | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| force_reusable_workflows_bump: | |
| description: 'Bypass the Sunday-only schedule for dice-group/cpp-conan-release-reusable-workflow updates' | |
| type: boolean | |
| default: false | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '0 7 * * *' | |
| env: | |
| DICE_GROUP_REPO_1: 'dice-group/hypertrie' | |
| DICE_GROUP_REPO_2: 'dice-group/sparql-parser-base' | |
| DICE_GROUP_REPO_3: 'dice-group/dice-template-library' | |
| DICE_GROUP_REPO_4: 'dice-group/dice-hash' | |
| DICE_GROUP_REPO_5: 'dice-group/dice-sparse-map' | |
| DICE_GROUP_REPO_6: 'dice-group/metall-ffi' | |
| DICE_GROUP_REPO_7: 'dice-group/cpp-conan-release-reusable-workflow-test' | |
| TENTRIS_REPO_1: 'tentris/rdf4cpp' | |
| TENTRIS_REPO_2: 'tentris/rdf4cpp-private' | |
| TENTRIS_REPO_3: 'tentris/hypertrie' | |
| TENTRIS_REPO_4: 'tentris/tentris-storage' | |
| TENTRIS_REPO_5: 'tentris/tentris-lib' | |
| TENTRIS_REPO_6: 'tentris/tentris-frontend' | |
| jobs: | |
| renovate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Fingerprint Renovate Config | |
| id: config-fingerprint | |
| run: | | |
| echo "dice_repos=$(scripts/renovate-repos.sh DICE_GROUP_REPO)" >> "$GITHUB_OUTPUT" | |
| echo "dice_hash=$(scripts/renovate-hash.sh dicegroup.js)" >> "$GITHUB_OUTPUT" | |
| echo "tentris_repos=$(scripts/renovate-repos.sh TENTRIS_REPO)" >> "$GITHUB_OUTPUT" | |
| echo "tentris_hash=$(scripts/renovate-hash.sh tentris.js)" >> "$GITHUB_OUTPUT" | |
| - name: Run Renovate for this repository | |
| uses: renovatebot/github-action@v46.2.4 | |
| env: | |
| RENOVATE_REPOSITORIES: ${{ github.repository }} | |
| RENOVATE_CONFIG_FILE: renovate.json | |
| with: | |
| token: ${{ secrets.RENOVATE_TOKEN_DICEGROUP }} | |
| - name: Run Renovate for Dice Group Repositories | |
| uses: renovatebot/github-action@v46.2.4 | |
| env: | |
| RENOVATE_AUTODISCOVER: 'false' | |
| RENOVATE_REPOSITORIES: ${{ steps.config-fingerprint.outputs.dice_repos }} | |
| RENOVATE_BASE_BRANCHES: '["develop"]' | |
| RENOVATE_CONFIG_FILE: dicegroup.js | |
| RENOVATE_REPOSITORY_CACHE: 'enabled' | |
| RENOVATE_REPOSITORY_CACHE_TYPE: 's3://tentris-renovate/cache/dice-group/${{ steps.config-fingerprint.outputs.dice_hash }}/' | |
| RENOVATE_S3_ENDPOINT: 'https://fsn1.your-objectstorage.com' | |
| RENOVATE_S3_PATH_STYLE: 'true' | |
| AWS_ACCESS_KEY_ID: ${{ secrets.MINIO_USER }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.MINIO_PASSWORD }} | |
| AWS_REGION: 'eu-central-1' | |
| GIT_TERMINAL_PROMPT: '0' | |
| FORCE_REUSABLE_WORKFLOWS_BUMP: ${{ inputs.force_reusable_workflows_bump }} | |
| with: | |
| token: ${{ secrets.RENOVATE_TOKEN_DICEGROUP }} | |
| env-regex: '^(?:RENOVATE_\w+|AWS_\w+|GIT_\w+|FORCE_\w+)$' | |
| - name: Run Renovate for Tentris Repositories | |
| uses: renovatebot/github-action@v46.2.4 | |
| env: | |
| RENOVATE_AUTODISCOVER: 'false' | |
| RENOVATE_REPOSITORIES: ${{ steps.config-fingerprint.outputs.tentris_repos }} | |
| RENOVATE_BASE_BRANCHES: '["develop"]' | |
| RENOVATE_CONFIG_FILE: tentris.js | |
| RENOVATE_REPOSITORY_CACHE: 'enabled' | |
| RENOVATE_REPOSITORY_CACHE_TYPE: 's3://tentris-renovate/cache/tentris/${{ steps.config-fingerprint.outputs.tentris_hash }}/' | |
| RENOVATE_S3_ENDPOINT: 'https://fsn1.your-objectstorage.com' | |
| RENOVATE_S3_PATH_STYLE: 'true' | |
| AWS_ACCESS_KEY_ID: ${{ secrets.MINIO_USER }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.MINIO_PASSWORD }} | |
| AWS_REGION: 'eu-central-1' | |
| GIT_TERMINAL_PROMPT: '0' | |
| FORCE_REUSABLE_WORKFLOWS_BUMP: ${{ inputs.force_reusable_workflows_bump }} | |
| with: | |
| token: ${{ secrets.RENOVATE_TOKEN_TENTRIS }} | |
| env-regex: '^(?:RENOVATE_\w+|AWS_\w+|GIT_\w+|FORCE_\w+)$' | |
| - name: Prune Dice Group orphaned cache entries | |
| uses: devcontainers/ci@513af61f4de4f75d37e4438f184ba4358f0fc1ca # v0.3.1900000450 | |
| env: | |
| MINIO_USER: ${{ secrets.MINIO_USER }} | |
| MINIO_PASSWORD: ${{ secrets.MINIO_PASSWORD }} | |
| with: | |
| inheritEnv: true | |
| push: never | |
| runCmd: scripts/renovate-prune.sh dice-group ${{ steps.config-fingerprint.outputs.dice_hash }} | |
| - name: Prune Tentris orphaned cache entries | |
| uses: devcontainers/ci@513af61f4de4f75d37e4438f184ba4358f0fc1ca # v0.3.1900000450 | |
| env: | |
| MINIO_USER: ${{ secrets.MINIO_USER }} | |
| MINIO_PASSWORD: ${{ secrets.MINIO_PASSWORD }} | |
| with: | |
| inheritEnv: true | |
| push: never | |
| runCmd: scripts/renovate-prune.sh tentris ${{ steps.config-fingerprint.outputs.tentris_hash }} |