aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-github-lambda/lambda_function.py
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-03-06 21:38:41 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-03-07 01:30:54 +0100
commitd41c2fcdd9366fb3f1fcb11aceed919bfebbed61 (patch)
tree1081416126a9bff58857ade5984e5e3b9b45a487 /src/blogc-github-lambda/lambda_function.py
parentab1120742467f887b33cd89addf3c89b5f9bf5b6 (diff)
downloadblogc-d41c2fcdd9366fb3f1fcb11aceed919bfebbed61.tar.gz
blogc-d41c2fcdd9366fb3f1fcb11aceed919bfebbed61.tar.bz2
blogc-d41c2fcdd9366fb3f1fcb11aceed919bfebbed61.zip
make: add support to "production" builds
this is used by blogc-github-lambda and blogc-git-receiver.
Diffstat (limited to 'src/blogc-github-lambda/lambda_function.py')
-rw-r--r--src/blogc-github-lambda/lambda_function.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blogc-github-lambda/lambda_function.py b/src/blogc-github-lambda/lambda_function.py
index f8a259d..fb8492f 100644
--- a/src/blogc-github-lambda/lambda_function.py
+++ b/src/blogc-github-lambda/lambda_function.py
@@ -165,7 +165,7 @@ def sns_handler(message):
if os.path.isfile(blogcfile):
# deploy using blogc-make
- args = [os.path.join(cwd, 'blogc'), '-m', '-f', blogcfile,
+ args = [os.path.join(cwd, 'blogc'), '-m', '-p', '-f', blogcfile,
'all']
if debug:
args.append('-V')
@@ -186,6 +186,7 @@ def sns_handler(message):
else:
print "Commit not for master branch, skipping: %s" % payload['ref']
+
def lambda_handler(event, context):
for record in event['Records']:
if 'Sns' in record: