Builds lambda images on release. (#606)

This commit is contained in:
Travis Reeder
2017-03-23 11:42:37 -07:00
committed by Seif Lotfy سيف لطفي
parent b57a152241
commit daf9f60e6f
5 changed files with 15 additions and 3 deletions

2
fn/.gitignore vendored
View File

@@ -1,3 +1,5 @@
fn
vendor/
/fn.exe
/fn_linux
/fn_mac

View File

@@ -1,3 +1,3 @@
set -ex
docker build -t iron/functions-lambda:node .
docker build -t iron/functions-lambda:node4.3 .

View File

@@ -1,3 +1,4 @@
set -ex
docker push iron/functions-lambda:node
./build.sh
docker push iron/functions-lambda:node4.3

5
fn/lambda/release.sh Executable file
View File

@@ -0,0 +1,5 @@
set -ex
cd node
./release.sh
cd ..

View File

@@ -2,6 +2,10 @@
set -ex
cd lambda
./release.sh
cd ..
make vendor
make release
@@ -15,4 +19,4 @@ html_url=$(echo "$output" | python -c 'import json,sys;obj=json.load(sys.stdin);
curl --data-binary "@fn_linux" -H "Content-Type: application/octet-stream" -u $GH_DEPLOY_USER:$GH_DEPLOY_KEY $upload_url\?name\=fn_linux >/dev/null
curl --data-binary "@fn_mac" -H "Content-Type: application/octet-stream" -u $GH_DEPLOY_USER:$GH_DEPLOY_KEY $upload_url\?name\=fn_mac >/dev/null
curl --data-binary "@fn.exe" -H "Content-Type: application/octet-stream" -u $GH_DEPLOY_USER:$GH_DEPLOY_KEY $upload_url\?name\=fn.exe >/dev/null
curl --data-binary "@fn.exe" -H "Content-Type: application/octet-stream" -u $GH_DEPLOY_USER:$GH_DEPLOY_KEY $upload_url\?name\=fn.exe >/dev/null