We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52f3471 commit 57f2437Copy full SHA for 57f2437
1 file changed
.github/workflows/sandbox-refresh.yml
@@ -0,0 +1,35 @@
1
+name: Sandbox Refresh
2
+
3
+on:
4
+ # Run every night
5
+ schedule:
6
+ - cron: '0 9 * * *'
7
8
+ workflow_dispatch:
9
10
+jobs:
11
+ main:
12
+ name: Refresh DBs
13
+ runs-on: [self-hosted, dev-server]
14
+ permissions:
15
+ contents: read
16
17
+ steps:
18
+ - uses: actions/checkout@v3
19
20
+ - name: Refresh DBs
21
+ env:
22
+ DEBIAN_FRONTEND: noninteractive
23
+ run: |
24
+ echo "Install Deploy to Container CLI dependencies..."
25
+ cd dev/deploy-to-container
26
+ npm ci
27
+ cd ../..
28
+ echo "Start Refresh..."
29
+ node ./dev/deploy-to-container/refresh.js
30
31
+ - name: Cleanup old docker resources
32
33
34
35
+ docker image prune -a -f
0 commit comments