/wercker-build-trigger

Lambda job with Apex to trigger wercker build.

Primary LanguageGoMIT LicenseMIT

wercker-build-trigger

Lambda job with Apex to trigger wercker build.

This realizes scheduled wercker build by scheduled lambda function.

Usage

1. Initialize

1.1 Install

See Apex installation description.

1.2 AWS configuration

See Apex AWS credentials description.

1.3 init

$ apex init

And input project settings.

Maybe you don't want default function hello, remove it with $ rm -rf functions/hello.

2. Deploy

$ apex deploy

2. Lambda settings

Configure to trigger Lambda function.

2.1 Environment variables

Configure environment variables in ./project.json.

All variables are required.

  • WERCKER_TOKEN
  • WERCKER_PIPELINE_ID
  • WERCKER_MESSAGE

See Authentication and Run in wercker docs for more detail.

2.2 Trigger settings

See Examples of How to Use AWS Lambda - AWS Lambda and configure lambda Trigger settings.

License

MIT