• This repository has been archived on 11/Jun/2018
  • Stars
    star
    17
  • Rank 1,257,181 (Top 25 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 8 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[Deprecated] Scheduler to build your CircleCI project with AWS Lambda ⚡

circleci-build-trigger

serverless

Scheduler to build your CircleCI project with AWS Lambda.

⚠️ Deprecation warning ⚠️

CircleCI 2.0 released Scheduling Workflow.

I strongly recommend using Scheduling Workflow!!

Use case

Introduce use cases of this Lambda function.

Quick Start

$ git clone [email protected]:tsub/circleci-build-trigger.git # or sls install -u https://github.com/tsub/circleci-build-trigger
$ cd circleci-build-trigger
$ npm install # or yarn install
$ cp serverless.env.yml{.template,} # and Set environment variables in serverless.env.yml
$ export AWS_ACCESS_KEY_ID=<YOUR AWS_ACCESS_KEY_ID>
$ export AWS_SECRET_ACCESS_KEY=<YOUR AWS_SECRET_ACCESS_KEY>
$ export AWS_REGION=<YOUR AWS_REGION>
$ npm run deploy -- -s prod # or yarn run deploy -- -s prod

Requirements

  • Node.js
  • yarn (option)

Require Environment variables

  • $AWS_ACCESS_KEY_ID
  • $AWS_SECRET_ACCESS_KEY
  • $AWS_REGION or $AWS_DEFAULT_REGION

About serverless.env.yml

CIRCLE_TOKEN

Access token to access the CircleCI API.

CircleCI: Project Settings -> API Permissions -> Create a token with 'All' scope

PROJECT

GitHub repository to build.

e.g. tsub/circleci-build-trigger

BRANCH

Git branch to build.

e.g. master

TRIGGER_NAME

⚠️ [DEPRECATED] Recommend using CIRCLE_JOB

Key name to use the CircleCI build_parameters.

e.g. CIRCLECI_BUILD_TRIGGER

CIRCLE_JOB

📣 Can be used only with CircleCI 2.0

Building job name to use the CircleCI 2.0 CIRCLE_JOB.

e.g. continuous_bundle_update

SCHEDULE_EXPRESSION

Schedule rule to Start build.

Schedule Expression Syntax for Rules - Amazon CloudWatch Events

Examples

Run weekly.

rate(1 weeks)

Run at 00:00 am (UTC) every Monday.

cron(0 0 ? * Mon *)

More Repositories

1

s3-edit

Edit directly a file on Amazon S3 in CLI
Go
80
star
2

serverless-plugin-subscription-filter

Extend subscription filter events for the Serverless framework ⚡
JavaScript
18
star
3

docker-graph-easy

Dockerized graph-easy
Shell
14
star
4

serverless-daily-standup-bot

[under development] ⚡ Asynchronous daily stand-up meeting in Slack
Go
11
star
5

dotfiles

My dotfiles
Ruby
9
star
6

rust-slack-bot

A sample of Slack bot written in Rust.
Rust
9
star
7

fkill

Kill processes with fzf
Shell
8
star
8

fish-fzf-git-recent-branch

Efficient fish keybinding for fzf with git branch
Shell
8
star
9

alfred-datadog-workflow

A Alfred workflow to open Datadog pages
Go
6
star
10

albert-github

Open GitHub repository in browser with Albert
Python
4
star
11

fish-fzf-ghq

Efficient fish keybindinging for fzf with ghq
Shell
4
star
12

echo-sandbox

A sandbox for the echo framework.
Go
4
star
13

serverless-qiita-team-template

[under development] Create a Qiita:Team new post from templates
Go
4
star
14

eks-sandbox

HCL
3
star
15

ecs-sandbox

HCL
2
star
16

circleci-orbs-sandbox

1
star
17

alfred-aws-vault-workflow

A Alfred workflow to open the AWS Management Console with aws-vault
1
star
18

elm-tutorial

Write a sample code of the Elm tutorial
Elm
1
star
19

cockroachdb-sandbox

Go
1
star
20

slides

My slides
Shell
1
star
21

asdf-terraform-build

Terraform plugin with go build for the asdf version manager
Shell
1
star
22

blog

Build with Hugo
Dockerfile
1
star
23

awesome_events

feedforce job training from 2016/5/24 to 2016/6/10
Ruby
1
star
24

homebrew-s3-edit

A Homebrew formula for tsub/s3-edit
Ruby
1
star
25

docker-ghr

Dockerized ghr 🐳
1
star
26

docker-rails-boilerplate

Ruby
1
star
27

go-slack-bot

A sample of Slack bot written in Go.
Go
1
star
28

docker-mruby-cli

Docker image for mruby-cli 🐳
1
star
29

grpc-go-sandbox

The sandbox of the gRPC apps implemented in Go.
Go
1
star
30

docker-write-mime-multipart

Dockerized write-mime-multipart
Shell
1
star