-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from mariamrf/v2
Migrate to v2 of Github Actions
- Loading branch information
Showing
4 changed files
with
63 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Py Lambda Deploy | ||
author: Mariam Maarouf | ||
description: Deploy python code to AWS Lambda with dependencies in a separate layer. | ||
inputs: | ||
requirements_txt: | ||
description: the name/path to the requirements.txt file | ||
required: true | ||
default: 'requirements.txt' | ||
lambda_layer_arn: | ||
description: The ARN for the Lambda layer the dependencies should be pushed to without the version (every push is a new version). | ||
required: true | ||
lambda_function_name: | ||
description: The Lambda function name. Check the AWS docs/readme for examples. | ||
required: true | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.requirements_txt }} | ||
- ${{ inputs.lambda_layer_arn }} | ||
- ${{ inputs.lambda_function_name }} | ||
branding: | ||
icon: 'layers' | ||
color: 'yellow' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters