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

Pin container and dev dependencies #28

Merged
merged 1 commit into from
Apr 26, 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
11 changes: 3 additions & 8 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended", // Use recommended settings
"docker:pinDigests", // Pin container digests
"helpers:pinGitHubActionDigests", // Pin GitHub action digests
":enablePreCommit", // Enable updates to pre-commit repos
":gitSignOff" // Add Signed-off-by line to commit messages
":gitSignOff", // Add Signed-off-by line to commit messages
":pinDevDependencies" // Pin dev dependencies also
],
// Files to ignore
// "ignorePaths": [
Expand All @@ -18,13 +20,6 @@
],
"lockFileMaintenance": {"enabled": true},
"packageRules": [
{
"description": "Update golang tag in dockerfile & golang version in workflows in a single PR",
"groupName": "golang version",
"matchDepNames": [
"^golang$"
]
},
{
"description": "Update devcontainer images in a single PR",
"groupName": "devcontainer",
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
# https://docs.docker.com/build/cache/backends/gha/
# Effect on build times (B&P step only):
# No caching: 44s
# Max mode, no cache: 79s
# Max mode, perfect hit: 8s
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down
Loading