mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-14 16:37:56 -05:00
Compare commits
1 Commits
develop
...
feat/relea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
629664d18b |
102
.github/workflows/docker-e2e.yml
vendored
Normal file
102
.github/workflows/docker-e2e.yml
vendored
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
name: Docker E2E Weekly
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Trigger every Friday at 00:00 UTC. You can adjust the cron expression as needed.
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * 5'
|
||||||
|
# Allow manual triggering from the Actions tab (useful for testing).
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE_TAG: e2e-test
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
rollup_relayer:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #v3.4.0
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
|
||||||
|
env:
|
||||||
|
REPOSITORY: rollup-relayer
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./build/dockerfiles/rollup_relayer.Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}
|
||||||
|
|
||||||
|
coordinator-api:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #v3.4.0
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
|
||||||
|
env:
|
||||||
|
REPOSITORY: coordinator-api
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./build/dockerfiles/coordinator-api.Dockerfile
|
||||||
|
# platforms: linux/amd64,linux/arm64 #bugs for arm64
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}
|
||||||
|
|
||||||
|
coordinator-cron:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #v3.4.0
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
|
||||||
|
env:
|
||||||
|
REPOSITORY: coordinator-cron
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./build/dockerfiles/coordinator-cron.Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}
|
||||||
@@ -372,7 +372,7 @@ func (h *HistoryLogic) getCachedTxsInfo(ctx context.Context, cacheKey string, pa
|
|||||||
}
|
}
|
||||||
|
|
||||||
if start >= total {
|
if start >= total {
|
||||||
return nil, 0, true, nil
|
return nil, 0, false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
values, err := h.redis.ZRevRange(ctx, cacheKey, start, end).Result()
|
values, err := h.redis.ZRevRange(ctx, cacheKey, start, end).Result()
|
||||||
|
|||||||
@@ -51,8 +51,7 @@ func InitDB(config *Config) (*gorm.DB, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
db, err := gorm.Open(postgres.Open(config.DSN), &gorm.Config{
|
db, err := gorm.Open(postgres.Open(config.DSN), &gorm.Config{
|
||||||
CreateBatchSize: 1000,
|
Logger: &tmpGormLogger,
|
||||||
Logger: &tmpGormLogger,
|
|
||||||
NowFunc: func() time.Time {
|
NowFunc: func() time.Time {
|
||||||
// why set time to UTC.
|
// why set time to UTC.
|
||||||
// if now set this, the inserted data time will use local timezone. like 2023-07-18 18:24:00 CST+8
|
// if now set this, the inserted data time will use local timezone. like 2023-07-18 18:24:00 CST+8
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
)
|
)
|
||||||
|
|
||||||
var tag = "v4.7.11"
|
var tag = "v4.7.10"
|
||||||
|
|
||||||
var commit = func() string {
|
var commit = func() string {
|
||||||
if info, ok := debug.ReadBuildInfo(); ok {
|
if info, ok := debug.ReadBuildInfo(); ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user