Skip to content

Commit

Permalink
chore: show current state and last update status for debugging (#62)
Browse files Browse the repository at this point in the history
fix #46
  • Loading branch information
appleboy authored Apr 3, 2023
1 parent 04679dd commit faa243a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- name: Build binary
run: |
cd example && GOOS=linux go build -v -a -o main main.go && zip deployment.zip main
- name: deploy zip
uses: ./
with:
Expand All @@ -26,7 +27,6 @@ jobs:
aws_region: ${{ secrets.AWS_REGION }}
function_name: gorush
zip_file: example/deployment.zip
debug: true

- name: update env
uses: ./
Expand Down Expand Up @@ -122,6 +122,15 @@ jobs:
publish: false
max_attempts: 200

- name: deploy source code
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
source: example/main.go,example/go.mod,example/go.sum

# 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.5
FROM ghcr.io/appleboy/drone-lambda:1.3.6

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ inputs:
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
default: 600

runs:
using: 'docker'
Expand Down

0 comments on commit faa243a

Please sign in to comment.