kubo/.github
Marcin Rataj c12d24949c
feat: optimize docker builds (#10925)
* feat(docker): optimize Dockerfile for faster builds

- add BuildKit syntax directive for advanced caching features
- implement cache mounts for Go modules and build cache
- reduce layers by combining RUN commands (5→2 in final stage)
- optimize apt-get with --no-install-recommends flag
- use COPY --chmod to avoid separate permission fixing

Performance improvements:
- incremental builds after code changes: ~8.6x faster (1m51s → 13s)
- go module/build cache persists between builds
- reduced layer count improves cache efficiency

* ci: optimize Docker builds with BuildKit caching

- enable BuildKit with GitHub Actions cache backend
- add Docker Hub registry cache for cross-workflow sharing
- move Docker login earlier to enable registry cache writes
- use dual cache strategy (gha + registry) for faster builds

expected improvements:
- PR builds can reuse main branch cache from Docker Hub
- rebuild after code changes ~5-10x faster with persistent cache
- cross-PR cache sharing reduces redundant builds
2025-08-21 14:44:19 +02:00
..
ISSUE_TEMPLATE chore: triage label for feature requests 2025-06-09 14:17:59 +02:00
workflows feat: optimize docker builds (#10925) 2025-08-21 14:44:19 +02:00
auto-comment.yml PR autocomment: Only comment for first-time contributors 2020-05-04 10:55:49 +02:00
CODEOWNERS chore: set kubo-maintainers as default code owners (#9808) 2023-04-10 03:59:40 -07:00
dependabot.yml dependabot: only update github-actions 2024-01-16 10:34:25 +01:00
FUNDING.yml chore: create FUNDING.yml 2024-03-04 13:36:09 +01:00
pull_request_template.md ci: add changelog update checker workflow [skip changelog] (#10002) 2023-07-06 08:13:27 +02:00