Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pennyZZZZ committed Sep 12, 2023
1 parent 338bfb9 commit 091e9dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"eslint": "^8.46.0",
"expect": "^29.6.2",
"mocha": "^10.2.0",
"serverless": "^3.34.0"
"serverless": "^2.72.4"
}
}
13 changes: 6 additions & 7 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,21 @@ provider:
runtime: nodejs18.x
stage: dev
region: ap-southeast-2

iamRoleStatements:
- Effect: "Allow"
Action:
- "ecr:*"
Resource: "*"
environment:
REPO_NAMES: ${env:REPO_NAMES}
AWS_ACCOUNT_ID: ${env:AWS_ACCOUNT_ID}
DRY_RUN: ${env:DRY_RUN, 'true'}
ECR_REGION: ${env:ECR_REGION, 'us-east-1'}
SLACK_WEBHOOK: ${env:SLACK_WEBHOOK}

functions:
cleanupImages:
handler: handler.cleanupImages
environment:
REPO_NAMES: ${env:REPO_NAMES}
AWS_ACCOUNT_ID: ${env:AWS_ACCOUNT_ID}
DRY_RUN: ${env:DRY_RUN, 'true'}
ECR_REGION: ${env:ECR_REGION, 'us-east-1'}
SLACK_WEBHOOK: ${env:SLACK_WEBHOOK}
timeout: 45
events:
- schedule: rate(1 day)

0 comments on commit 091e9dd

Please sign in to comment.