https://github.com/conoro/circleci-rebuild-serverless
A Serverless AWS Lambda function that runs once per day and rebuilds a set of CircleCI projects
https://github.com/conoro/circleci-rebuild-serverless
Last synced: 8 months ago
JSON representation
A Serverless AWS Lambda function that runs once per day and rebuilds a set of CircleCI projects
- Host: GitHub
- URL: https://github.com/conoro/circleci-rebuild-serverless
- Owner: conoro
- License: apache-2.0
- Created: 2017-12-10T14:28:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-26T16:18:02.000Z (over 1 year ago)
- Last Synced: 2024-12-13T03:21:15.848Z (over 1 year ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CircleCI-Rebuild-Serverless
A Serverless AWS Lambda function that runs once per day and rebuilds a set of
CircleCI projects
## Setup
(Assuming you have your AWS access credentials already setup).
1. Run:
```bash
git clone git@github.com:conoro/circleci-rebuild-serverless.git.git
cd circleci-rebuild-serverless.git
npm install -g serverless
npm install
```
2. Rename serverless-sample.env.yml to serverless.env.yml
3. Edit serverless.env.yml and configure your access token, username, scm and
list of projects to build
4. Then run:
```
npm run compile
serverless deploy
```
Notes:
1. You can also invoke it manually by accessing the GET URL returned by the
successful serverless deploy
2. You can check manually invoked logs with:
```bash
serverless logs -f check
```
and Cron logs with
```bash
serverless logs -f cron
```
3. If you make minor changes to just the function code, you can do a quick
re-deploy with:
```bash
serverless deploy function -f check
```
4. You can run it locally with
```bash
serverless invoke local --function check
```
5. It's using Babel to enable the use of async/await on Node 6 on Lambda. This will be removed when Node 8 is released on Lambda.
LICENSE Apache-2.0
Copyright Conor O'Neill 2017, conor@conoroneill.com