Skip to main content

Bundle Build

Stable

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

ParameterTypeDescription
build_commandsstringShell commands to build the bundle
file_pathstringPath to the output bundle file

Optional Parameters

ParameterTypeDefaultDescription
envobject-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