Restart the last build of a Codeship project using Lambda - 1.0.0 now only works with Codeship API version 2 - use version 0.1.0 for version 1
- Run
npm install
- Run
npm run setup
, this creates a number of config files - Edit
.env
to contain your AWS settings like credentials, AWS region etc - Edit
.deploy.env
to contain:CODESHIP_API_KEY
- required, your Codeship API v1 keyCODESHIP_USERNAME
- required, your Codeship user's usernameCODESHIP_PASSWORD
- required, your Codeship user's passwordCODESHIP_ORG_NAME
- required, your Codeship organisation name -- either this and/orCODESHIP_ORG_UUID
are requiredCODESHIP_ORG_UUID
- required, your Codeship organisation uuid -- either this and/orCODESHIP_ORG_NAME
are requiredCODESHIP_REPOSITORY_NAME
- required, your Codeship's project repository nameCODESHIP_BRANCH_NAME
- optional, a branch name to filter - defaults tomaster
- you can also set this to '*' to restart the last build of every branchCODESHIP_TESTING
- optional, whentrue
aborts the application before telling Codeship to restart the build thereby saving on build countsCODESHIP_INCLUDE_TAGS
- optional, whentrue
andCODESHIP_BRANCH_NAME
is set to*
it will include all tags, which build as separate branches in Codeship, otherwise it ignores them
- Run
npm run package
to build and pack a zip to upload to Lambda - Upload the zip to Lambda
- Set the environmental variables again in Lambda
- Currently
npm run deploy
isn't working. It seems to be but then the function never shows up in Lambda - get this working so I don't have to upload anything