Skip to content

Commit 5f5ffe0

Browse files
authored
Update titan-docker.yml
1 parent 21e1498 commit 5f5ffe0

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/titan-docker.yml

+19-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Run titannet-docker
22

33
on:
4-
schedule:
5-
- cron: '*/30 * * * *'
6-
workflow_dispatch:
4+
# schedule:
5+
# - cron: '*/30 * * * *'
6+
workflow_dispatch:
7+
inputs:
8+
node_id:
9+
required: true
10+
default: '0'
711

812
jobs:
913
run-titan-docker:
@@ -15,11 +19,21 @@ jobs:
1519
with:
1620
fetch-depth: 2
1721

22+
- name: Cache Primes
23+
id: cache-data
24+
uses: actions/cache@v4
25+
with:
26+
path: /home/runner/.titanedge
27+
key: ${{ runner.os }}-titan-${{ inputs.node_id }}
28+
1829
- name: run
1930
run: |
2031
cd titan/
2132
sudo chmod +x ./titan_start.sh
2233
./titan_start.sh ${{ vars.TITAN_CODE }}
2334
docker ps
24-
docker logs -f titan1 & docker logs -f titan2 & docker logs -f titan3 & docker logs -f titan4 & docker logs -f titan5
25-
while true; do sleep 10000; done
35+
sleep 20880s
36+
37+
- name: Auth
38+
run: |
39+
sudo chmod -R 777 /home/runner/.titanedge

0 commit comments

Comments
 (0)