Skip to content

Commit 00b22ca

Browse files
authored
Merge pull request #266 from umihico/2024-08-13T2330/clean-ecr
feat: clean ECR to save money
2 parents dd1bd49 + adb7459 commit 00b22ca

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/auto-update.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ jobs:
7474
- name: Invoke
7575
id: invoke
7676
run: sls invoke -f demo > /tmp/scraping-result.txt
77+
- name: Clean up (ECR costs)
78+
run: sls remove
7779
- name: Archive result
7880
uses: actions/upload-artifact@v3
7981
if: ${{ !env.ACT }}

.github/workflows/check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ jobs:
3131
run: sls invoke --function demo |& tee /tmp/scraping-result.txt
3232
- name: Check
3333
run: cat /tmp/scraping-result.txt | grep -q "This domain is for use in illustrative examples in documents"
34+
- name: Clean up (ECR costs)
35+
run: sls remove

.github/workflows/demo-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: demo-test
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: "0 0 * * *"
6+
- cron: "0 1 * * *"
77
push:
88
branches:
99
- feat/github-actions**
@@ -32,3 +32,5 @@ jobs:
3232
sls deploy
3333
sls invoke --function demo |& tee /tmp/scraping-result.txt
3434
cat /tmp/scraping-result.txt | grep -q "This domain is for use in illustrative examples in documents"
35+
- name: Clean up (ECR costs)
36+
run: sls remove

0 commit comments

Comments
 (0)