mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Builds lambda images on release. (#606)
This commit is contained in:
committed by
Seif Lotfy سيف لطفي
parent
b57a152241
commit
daf9f60e6f
2
fn/.gitignore
vendored
2
fn/.gitignore
vendored
@@ -1,3 +1,5 @@
|
||||
fn
|
||||
vendor/
|
||||
/fn.exe
|
||||
/fn_linux
|
||||
/fn_mac
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set -ex
|
||||
|
||||
docker build -t iron/functions-lambda:node .
|
||||
docker build -t iron/functions-lambda:node4.3 .
|
||||
|
||||
@@ -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
5
fn/lambda/release.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
set -ex
|
||||
|
||||
cd node
|
||||
./release.sh
|
||||
cd ..
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user