1.0.5 • Published 7 years ago
codeship-restart-lambda v1.0.5
codeship-restart-lambda
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
Installation:
- Run
npm install - Run
npm run setup, this creates a number of config files - Edit
.envto contain your AWS settings like credentials, AWS region etc - Edit
.deploy.envto 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_UUIDare requiredCODESHIP_ORG_UUID- required, your Codeship organisation uuid -- either this and/orCODESHIP_ORG_NAMEare 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, whentrueaborts the application before telling Codeship to restart the build thereby saving on build countsCODESHIP_INCLUDE_TAGS- optional, whentrueandCODESHIP_BRANCH_NAMEis set to*it will include all tags, which build as separate branches in Codeship, otherwise it ignores them
- Run
npm run packageto build and pack a zip to upload to Lambda - Upload the zip to Lambda
- Set the environmental variables again in Lambda
TODO:
- Currently
npm run deployisn'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