kubo/.github/workflows
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
..
changelog.yml ci: add changelog update checker workflow [skip changelog] (#10002) 2023-07-06 08:13:27 +02:00
codeql-analysis.yml chore(deps): bump actions/checkout from 4 to 5 (#10907) 2025-08-15 00:32:05 +02:00
docker-build.yml feat: optimize docker builds (#10925) 2025-08-21 14:44:19 +02:00
docker-image.yml feat: optimize docker builds (#10925) 2025-08-21 14:44:19 +02:00
gateway-conformance.yml chore(deps): bump actions/checkout from 4 to 5 (#10907) 2025-08-15 00:32:05 +02:00
generated-pr.yml ci: uci/copy-templates (#10787) 2025-05-09 21:53:37 +02:00
gobuild.yml chore(deps): bump actions/checkout from 4 to 5 (#10907) 2025-08-15 00:32:05 +02:00
golang-analysis.yml chore(deps): bump actions/checkout from 4 to 5 (#10907) 2025-08-15 00:32:05 +02:00
golint.yml chore(deps): bump actions/checkout from 4 to 5 (#10907) 2025-08-15 00:32:05 +02:00
gotest.yml chore(deps): bump actions/checkout from 4 to 5 (#10907) 2025-08-15 00:32:05 +02:00
interop.yml chore(deps): bump actions/checkout from 4 to 5 (#10907) 2025-08-15 00:32:05 +02:00
sharness.yml chore(deps): bump actions/checkout from 4 to 5 (#10907) 2025-08-15 00:32:05 +02:00
spellcheck.yml feat(ci): reusable spellcheck from unified CI (#10873) 2025-08-14 00:35:35 +00:00
stale.yml ci: uci/copy-templates (#10787) 2025-05-09 21:53:37 +02:00
sync-release-assets.yml Revert "fix(ci): workaround for upload-rtifact@v3 depr." 2025-01-24 17:37:03 +01:00