Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
18545b9
Refactor to integrate SnapshotsAdapter and streamline environment man…
Jan 16, 2026
b5d4ad8
allow setting envs instead of flags
Jan 19, 2026
7848f74
implemnet docker
Jan 19, 2026
88b007a
implement time check
Jan 19, 2026
a78156c
use same dappmanager url always
Jan 19, 2026
4261a89
implement github adapter
Jan 19, 2026
84bb3be
increase execution time
Jan 19, 2026
3e1f97d
add todos
Jan 19, 2026
1f2438d
fix get servicename utility
Jan 19, 2026
55ad24a
add clients versions todos
Jan 19, 2026
038e98a
add todos
Jan 19, 2026
fe7c465
fix get servicename
Jan 19, 2026
d3383e2
add less verbose todo
Jan 19, 2026
2dbc4d9
implement versions getters for execution and beaconchain adapters
Jan 19, 2026
1160d55
implement version in snapshot
Jan 19, 2026
87be941
get versions and add them to therpor
Jan 19, 2026
0a6540e
remove unused getreport
Jan 19, 2026
59e9a3c
first implementation of snapshot checker
Jan 21, 2026
c2597d6
implement composite adapter in snapshot checker
Jan 21, 2026
36ca367
move logging to snapshot checker service
Jan 21, 2026
7d8735d
move all logs from adapters to service test runner
Jan 21, 2026
77c4d29
move loggin to test runner
Jan 21, 2026
34e8340
add wait for download in progress
Jan 22, 2026
4fa2eb9
implement wait for download to complete
Jan 22, 2026
3fc7eee
rename to download adapter
Jan 22, 2026
3bbc820
implement testing adapter
Jan 22, 2026
062c1df
improve cleaner execution
Jan 22, 2026
61c80ae
improve exit handler testrunner
Jan 22, 2026
e41bd9a
cleanup flag files adapters
Jan 23, 2026
0fb7c94
implement file locking
Jan 23, 2026
bd442cf
fix log tyypo
Jan 23, 2026
2180c9e
relocate blocknumberadapter
Jan 23, 2026
d78e4a8
add docker dev
Jan 23, 2026
a00c502
set tunonce to true
Jan 23, 2026
6217edd
implement single stop download
Jan 23, 2026
bf33a0d
implement client overrides
Jan 23, 2026
a417e8d
add missin envs to compose dev file
Jan 23, 2026
db64796
first implementation of CI
Jan 23, 2026
1319020
implement runonce default to true
Jan 23, 2026
13969d9
remove runonce from ci example
Jan 23, 2026
4995023
set default log level debug
Jan 23, 2026
30cd0f7
update CI
Jan 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Release and Publish Docker Images

on:
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g. v1.2.3)'
required: true
type: string

env:
REGISTRY: ghcr.io
IMAGE_PREFIX: ${{ github.repository }}
VERSION: ${{ github.event.inputs.version }}

jobs:
build-binaries:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'

- name: Build test-runner
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
run: |
go build -o test-runner-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/test-runner

- name: Build snapshot-checker
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
run: |
go build -o snapshot-checker-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/snapshot-checker

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: binaries-${{ matrix.goos }}-${{ matrix.goarch }}
path: |
test-runner-${{ matrix.goos }}-${{ matrix.goarch }}
snapshot-checker-${{ matrix.goos }}-${{ matrix.goarch }}

docker:
needs: build-binaries
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
include:
- name: test-runner
dockerfile: Dockerfile.test-runner
- name: snapshot-checker
dockerfile: Dockerfile.snapshot-checker
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ${{ matrix.dockerfile }}
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/${{ matrix.name }}:${{ env.VERSION }}
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/${{ matrix.name }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max

release:
needs: [build-binaries, docker]
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: binaries
merge-multiple: true

- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.VERSION }}
files: binaries/*
generate_release_notes: true
41 changes: 0 additions & 41 deletions Dockerfile

This file was deleted.

30 changes: 30 additions & 0 deletions Dockerfile.snapshot-checker
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Build stage
FROM golang:1.24-alpine AS builder

WORKDIR /app

# Install git for fetching dependencies
RUN apk add --no-cache git

# Copy go mod files first for better caching
COPY go.mod go.sum ./
RUN go mod download

# Copy source code
COPY . .

# Build the snapshot-checker application
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/snapshot-checker ./cmd/snapshot-checker

# Final stage
FROM alpine:latest

WORKDIR /app

# Install ca-certificates for HTTPS requests and docker-cli for snapshot operations
RUN apk add --no-cache ca-certificates docker-cli

# Copy binary from builder
COPY --from=builder /app/snapshot-checker /app/snapshot-checker

ENTRYPOINT ["/app/snapshot-checker"]
30 changes: 30 additions & 0 deletions Dockerfile.test-runner
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Build stage
FROM golang:1.24-alpine AS builder

WORKDIR /app

# Install git for fetching dependencies
RUN apk add --no-cache git

# Copy go mod files first for better caching
COPY go.mod go.sum ./
RUN go mod download

# Copy source code
COPY . .

# Build the test-runner application
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/test-runner ./cmd/test-runner

# Final stage
FROM alpine:latest

WORKDIR /app

# Install ca-certificates for HTTPS requests and docker-cli for snapshot operations
RUN apk add --no-cache ca-certificates docker-cli

# Copy binary from builder
COPY --from=builder /app/test-runner /app/test-runner

ENTRYPOINT ["/app/test-runner"]
Loading