Skip to content

Commit

Permalink
feat: clean ECR to save money
Browse files Browse the repository at this point in the history
  • Loading branch information
umihico committed Aug 13, 2024
1 parent dd1bd49 commit adb7459
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
- name: Invoke
id: invoke
run: sls invoke -f demo > /tmp/scraping-result.txt
- name: Clean up (ECR costs)
run: sls remove
- name: Archive result
uses: actions/upload-artifact@v3
if: ${{ !env.ACT }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ jobs:
run: sls invoke --function demo |& tee /tmp/scraping-result.txt
- name: Check
run: cat /tmp/scraping-result.txt | grep -q "This domain is for use in illustrative examples in documents"
- name: Clean up (ECR costs)
run: sls remove
4 changes: 3 additions & 1 deletion .github/workflows/demo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: demo-test
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
- cron: "0 1 * * *"
push:
branches:
- feat/github-actions**
Expand Down Expand Up @@ -32,3 +32,5 @@ jobs:
sls deploy
sls invoke --function demo |& tee /tmp/scraping-result.txt
cat /tmp/scraping-result.txt | grep -q "This domain is for use in illustrative examples in documents"
- name: Clean up (ECR costs)
run: sls remove

0 comments on commit adb7459

Please sign in to comment.