Commit Graph

67 Commits

Author SHA1 Message Date
darnodo
528a24beb0 ci: improve image detection logic in build workflow
Updates the `build-images` workflow to robustly detect and validate changes to image directories.

Changes:
- Implements strict validation to ensure detected image directories exist and contain a `Dockerfile` before adding them to the build matrix.
- Normalizes logic for both manual inputs and automatic git-diff detection using a temporary file (`valid_images.txt`) to collect targets.
- Adds specific checks to warn if a manually specified image is missing or invalid.
- Prevents the build job from failing or running unnecessarily if an empty image name is passed to the matrix by adding an early exit condition.
2025-12-07 20:54:26 +01:00
darnodo
2241f39e50 ci: refactor build pipeline to use standard docker commands
Updates the image building workflow to improve reliability and readability.

Changes:
- Replaced the complex `moby/buildkit` container-in-container execution with standard Docker build and push steps.
- Added explicit checkout, login, and build steps to the job matrix.
- Improved the change detection logic:
    - Added input sanitization (whitespace trimming) for manually triggered builds.
    - Added comments explaining the directory diff logic.
- Updated job titles and comments to English for consistency (e.g., "Detect modified images" instead of "Détection des images modifiées").
- Added `fail-fast: false` to the matrix strategy so one failed build doesn't stop others.
2025-12-07 20:40:56 +01:00
0a490015d2 fix: add --entrypoint sh to override buildkitd default entrypoint 2025-12-07 18:59:33 +00:00
e930f2dea6 refactor: run git clone + build inside single buildkit container 2025-12-07 18:20:21 +00:00
10ff5e5a4e fix: use docker volumes to share context between containers 2025-12-07 18:17:46 +00:00
55d54d9eda refactor: use docker:cli + buildkit daemonless via socket 2025-12-07 18:16:14 +00:00
fbab2854c6 refactor: switch to Kaniko (no daemon, no privileged mode needed) 2025-12-07 18:10:21 +00:00
fedd5814f3 fix: use $HOME/build instead of /workspace, remove apk install (git already in image) 2025-12-07 18:02:14 +00:00
9d816609b2 fix: replace actions/checkout with manual git clone (no Node dependency) 2025-12-07 17:56:16 +00:00
6f4b8a203f docs: update README for alpine-based image
Some checks failed
Build and Push Docker Images / detect-changes (push) Failing after 6s
Build and Push Docker Images / build (push) Has been skipped
2025-12-07 17:53:06 +00:00
d1173e6254 refactor: use Buildkit rootless for fully containerized builds 2025-12-07 17:52:52 +00:00
bbbd3364a6 refactor: use alpine base for lighter image
Some checks failed
Build and Push Docker Images / detect-changes (push) Failing after 7s
Build and Push Docker Images / build (push) Has been skipped
2025-12-07 17:52:27 +00:00
067fb69c8f docs: add comprehensive README 2025-12-07 17:18:14 +00:00
b5e2ff347d ci: add Buildkit workflow for multi-image builds 2025-12-07 17:17:50 +00:00
21672041fb docs: add README for terraform-ci image 2025-12-07 17:17:35 +00:00
e7e2ed8e2c feat: add terraform-ci image with tflint 2025-12-07 17:17:29 +00:00
b78f65978c Initial commit 2025-12-07 17:17:21 +00:00