Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
47 changes: 47 additions & 0 deletions .github/workflows/avs-stack-pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "[Nethermind] Taiko Preconf AVS Stack - Pytest"

on:
workflow_dispatch:
push:
branches: [main]

env:
TARGET_MACHINE_IP: 178.79.141.170
jobs:
build:
name: Build and push docker image
runs-on: ubuntu-latest
if: github.repository == 'NethermindEth/preconf-taiko-mono'
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup SSH Key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H ${{ env.TARGET_MACHINE_IP }} >> ~/.ssh/known_hosts

- name: SSH into target machine
run: |
ssh -o StrictHostKeyChecking=no root@${{ env.TARGET_MACHINE_IP }} << 'EOF'
docker pull nethswitchboard/taiko-protocol-dev:latest
docker pull nethswitchboard/taiko-client-dev:latest
docker pull nethswitchboard/taiko-preconf-avs-dev:latest
docker pull nethswitchboard/taiko-preconf-avs-protocol-dev:latest
docker pull nethswitchboard/taiko-preconf-avs-pytest-dev:latest

cd ~/preconfirm-devnet-package
git pull
kurtosis run --enclave taiko-preconf-devnet . --args-file network_params.yaml
EOF

- name: Summary
run: |
echo "## Pytest completed :green_circle:" >> $GITHUB_STEP_SUMMARY
echo "### Tags" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.meta.outputs.tags }}" | while IFS= read -r TAG; do
echo "- $TAG" >> $GITHUB_STEP_SUMMARY
done
echo "### Notes" >> $GITHUB_STEP_SUMMARY
2 changes: 2 additions & 0 deletions .github/workflows/repo--validate-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- opened
- edited

if: false # skipping for preconf-taiko-mono

jobs:
validate-pr-title:
if: contains(github.event.pull_request.labels.*.name, 'option.workflow_on') || github.event.pull_request.draft == false && github.head_ref != 'release-please-*'
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/taiko-client--docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: "[Nethermind] Taiko Client - Docker build and push"

on:
workflow_dispatch:
push:
branches: [main]
tags:
- "taiko-client-v*"
paths:
- "packages/taiko-client/**"

env:
DOCKER_REGISTRY: docker.io
DOCKER_USERNAME: nethswitchboard
DOCKER_REPOSITORY_DEV: preconf-taiko-client

jobs:
build:
name: Build and push docker image
runs-on: ubuntu-latest
if: github.repository == 'NethermindEth/preconf-taiko-mono'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- uses: docker/login-action@v3
with:
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ env.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_USERNAME }}/${{ env.DOCKER_REPOSITORY_DEV }}
tags: |
type=raw,value=latest
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=sha

- name: Build and push by digest
id: build
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
context: .
file: packages/taiko-client/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Summary
run: |
echo "## Docker build completed :green_circle:" >> $GITHUB_STEP_SUMMARY
echo "### Tags" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.meta.outputs.tags }}" | while IFS= read -r TAG; do
echo "- $TAG" >> $GITHUB_STEP_SUMMARY
done
echo "### Notes" >> $GITHUB_STEP_SUMMARY
2 changes: 1 addition & 1 deletion .github/workflows/taiko-client--docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Build and Push Multi-Arch Docker Image"

on:
push:
branches: [main]
branches: [main, preconf-driver-apis]
tags:
- "taiko-alethia-client-v*"
paths:
Expand Down
35 changes: 29 additions & 6 deletions .github/workflows/taiko-client--pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Taiko Client Preconf Blocks Documentation"
name: "Taiko Client Github Pages"

on:
push:
Expand All @@ -7,13 +7,14 @@ on:
- "packages/taiko-client/**"

jobs:
generate-and-deploy:
swagger-gen:
runs-on: [arc-runner-set]
permissions:
contents: write
steps:
- name: Checkout repository
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main

- name: Set up Go
uses: actions/setup-go@v4
Expand All @@ -31,10 +32,32 @@ jobs:
cd packages/taiko-client
./scripts/gen_swagger_json.sh

- name: Commit Swagger docs
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
if ! git diff --quiet; then
git add -u
git commit -m "Update Swagger documentation"
git push origin HEAD:${{ github.ref_name }}
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy:
runs-on: [arc-runner-set]
needs: swagger-gen
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: packages/taiko-client/docs # Set this to where your `index.html` is located
publish_branch: gh-pages
destination_dir: preconf_blocks_api
destination_dir: soft-block-apis
68 changes: 68 additions & 0 deletions .github/workflows/taiko-protocol--docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: "[Nethermind] Taiko Protocol - Docker build and push"

on:
workflow_dispatch:
push:
branches: [main]
tags:
- "taiko-protocol-v*"
paths:
- "packages/protocol/**"

env:
DOCKER_REGISTRY: docker.io
DOCKER_USERNAME: nethswitchboard
DOCKER_REPOSITORY_DEV: preconf-taiko-protocol

jobs:
build:
name: Build and push docker image
runs-on: ubuntu-latest
if: github.repository == 'NethermindEth/preconf-taiko-mono'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- uses: docker/login-action@v3
with:
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ env.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_USERNAME }}/${{ env.DOCKER_REPOSITORY_DEV }}
tags: |
type=raw,value=latest
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=sha

- name: Build and push by digest
id: build
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
context: ./packages/protocol
file: ./packages/protocol/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Summary
run: |
echo "## Docker build completed :green_circle:" >> $GITHUB_STEP_SUMMARY
echo "### Tags" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.meta.outputs.tags }}" | while IFS= read -r TAG; do
echo "- $TAG" >> $GITHUB_STEP_SUMMARY
done
echo "### Notes" >> $GITHUB_STEP_SUMMARY