File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Feed Data Service
2+
3+ on :
4+ push :
5+ branches :
6+ - feature/backend-deployment
7+ workflow_dispatch :
8+
9+ jobs :
10+ deploy :
11+ runs-on : ubuntu-latest
12+ environment : ${{ github.ref == 'refs/heads/feature/backend-deployment' && 'production' || 'staging' }}
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Copy backend code to server
19+ uses : appleboy/scp-action@v0.1.7
20+ with :
21+ host : ${{ secrets.SSH_HOST }}
22+ username : ${{ secrets.SSH_USER }}
23+ key : ${{ secrets.SSH_PRIVATE_KEY }}
24+ source : " backend/*"
25+ target : " /home/app/dashboard-demo-backend/"
26+ rm : true
27+ strip_components : 0
28+
29+ - name : Deploy via SSH
30+ uses : appleboy/ssh-action@v1.0.0
31+ with :
32+ host : ${{ secrets.SSH_HOST }}
33+ username : ${{ secrets.SSH_USER }}
34+ key : ${{ secrets.SSH_PRIVATE_KEY }}
35+ script : |
36+ cd /home/app/dashboard-demo-backend
37+ docker-compose down
38+ docker-compose build
39+ docker-compose up -d
40+ docker-compose logs --tail=50 feed-data
Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ async function collectLatestOnce() {
235235 console . log ( "✅ Up to date; no new blocks to store" ) ;
236236 return { stored : 0 } ;
237237 }
238+ blocksToStore . reverse ( ) ;
238239
239240 // Store in batches of 100
240241 console . log ( "\n💾 Storing new blocks in Arkiv..." ) ;
You can’t perform that action at this time.
0 commit comments