Skip to content

Commit

Permalink
chore: update AWS Lambda deployment max attempts (#61)
Browse files Browse the repository at this point in the history
- Add input for `max_attempts` to action.yml with the default value of `300`

Fix #58
  • Loading branch information
appleboy authored Apr 2, 2023
1 parent e3bed1f commit ca747d4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,18 @@ jobs:
debug: true
publish: false

- name: check max attempts flag
uses: ./
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ${{ secrets.AWS_REGION }}
function_name: gorush
zip_file: example/deployment.zip
debug: true
publish: false
max_attempts: 200

# deploy_source:
# name: deploy lambda from source
# runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/appleboy/drone-lambda:1.3.4
FROM ghcr.io/appleboy/drone-lambda:1.3.5

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ inputs:
description: 'A description of the function.'
tracing_mode:
description: 'Set Mode to Active to sample and trace a subset of incoming requests with AWS X-Ray.'
max_attempts:
description: 'the maximum number of times the waiter should attempt to check the resource for the target state'
default: 300

runs:
using: 'docker'
Expand Down

0 comments on commit ca747d4

Please sign in to comment.