ビルド自動化は、ソースコードを自動的にコンパイル、パッケージ化、準備して、手動ステップなしでデプロイ可能なアーティファクトに変換するプロセスです。これはCI/CDパイプラインの最初の主要なステージであり、ソースコードをテストとデプロイが可能な形に変えます。
ビルドステージが行うこと
The BUILD automates turning source code into a deployable ARTIFACT:
→ INSTALL dependencies (npm install, pip install, etc.)
→ COMPILE / transpile code (if needed: Java, TypeScript, Go, etc.)
→ BUNDLE / package (frontend bundles, JARs, binaries)
→ BUILD container images (Docker) if containerized
→ produce ARTIFACTS ready for testing and deployment
→ Automated, consistent, repeatable — no manual build steps.
ビルドを自動化する理由
✓ CONSISTENCY — the same build process every time (no "works on my machine" build issues)
✓ REPEATABILITY — anyone/any pipeline can reproduce the build identically
✓ SPEED — automated builds are fast and don't require manual effort
✓ EARLY ERROR DETECTION — build failures (compile errors, missing deps) caught immediately
✓ Foundation for the rest of the pipeline (test/deploy need the build output)
