This AWS Lambda function receives a webhook notification from CircleCI, downloads the artifacts for that build, and uploads them to BinTray and their SHA256 to GitHub.
It uses Linuxbrew, ruby
, git
and ssh
on AWS Lambda.
- https://aws.amazon.com/blogs/compute/scripting-languages-for-aws-lambda-running-php-ruby-and-go/
- http://www.adomokos.com/2016/06/using-ruby-in-aws-lambda.html
- https://github.com/awslabs/lambda-ecs-worker-pattern
HOMEBREW_VERSION: >1.1.0 (no git repository)
ORIGIN: https://github.com/Linuxbrew/brew
HEAD: a8dff1fe61193bacfd8416e8cd024803a59802d0
Last commit: 5 days ago
Core tap ORIGIN: https://github.com/Linuxbrew/homebrew-core
Core tap HEAD: 72349992f3f8c6d47ed76ee26d854e63e7550d42
Core tap last commit: 6 hours ago
HOMEBREW_PREFIX: /tmp/brew
HOMEBREW_REPOSITORY: /tmp/brew
HOMEBREW_CELLAR: /tmp/brew/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://linuxbrew.bintray.com
CPU: dual-core 64-bit haswell
Homebrew Ruby: 2.2.2 => /var/task/bin/ruby
Clang: N/A
Git: 2.4.3 => /tmp/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python => /usr/bin/python2.7
Ruby: /var/task/bin/ruby
Java: openjdk version "1.8.0_101"
Kernel: Linux 4.4.35-33.55.amzn1.x86_64 x86_64 GNU/Linux
OS glibc: 2.17
OS gcc: N/A
Linuxbrew glibc: N/A
Linuxbrew gcc: N/A
Linuxbrew xorg: N/A
The Docker image lambci/lambda
is useful for troubleshooting this tool.
docker run --rm -v "$PWD":/var/task lambci/lambda:nodejs4.3 'index.handler' '{ "httpMethod": "GET" }'
docker run -it --rm -v "$PWD":/var/task --entrypoint /bin/bash lambci/lambda:nodejs4.3