-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.yml
32 lines (26 loc) · 935 Bytes
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
service: autopublisher
provider:
name: aws
runtime: go1.x
package:
exclude:
- ./**
include:
- ./bin/**
functions:
publish:
handler: bin/publish
timeout: 15
events:
# Edit this value to change how often this task runs.
- schedule: rate(6 hours)
environment:
# Create a Github personal access token and store it in AWS Systems Manager Parameter Store with the key `github_token`
# Instructions for obtaining an access token: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
github_token: ${ssm:github_token}
# Add your git signature
author_name: your-author-name
author_email: your-author-email
# List of repos to autopublish. Separate each repo with a semicolon.
# Autopublish will push a new commit to the master branch.
repos: https://github.com/FIRST-REPO;https://github.com/SECOND-REPO