Bundle Build
Type: DEVRAMPS:BUNDLE:BUILD
Category: build
Version: 1.0.0
Description
Builds a file artifact bundle using custom commands.
Executes build commands to produce a file artifact, then uploads it to S3. Useful for building Lambda deployment packages, static site bundles, or any other file-based artifact that needs to be deployed.
Parameters
Required Parameters
| Parameter | Type | Description |
|---|---|---|
build_commands | string | Shell commands to build the bundle |
file_path | string | Path to the output bundle file |
Optional Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
env | object | - | Environment variables |
Example Usage
artifacts:
lambda-package:
type: DEVRAMPS:BUNDLE:BUILD
rebuild_when_changed:
- "lambda/**"
params:
build_commands: |
npm ci
npm run build
zip -r lambda.zip dist node_modules
file_path: ./lambda.zip