Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b3cfd1

Browse files
SethGammonclaude
andcommitted
Add manual EigenCompute deploy workflow
Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent 8582755 commit 3b3cfd1

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy to EigenCompute
2+
3+
# Manually triggered: upgrades the live judges to a fresh image in-place,
4+
# preserving each app's identity (app ID / EigenVerify link / IP).
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
app:
9+
description: Which judge to upgrade
10+
type: choice
11+
options: [all, code, research, negotiation, governance]
12+
default: all
13+
image:
14+
description: Image reference
15+
default: ghcr.io/sethgammon/proofjudge:latest
16+
17+
env:
18+
EIGENX_VERSION: v0.2.16
19+
20+
jobs:
21+
upgrade:
22+
runs-on: ubuntu-latest
23+
strategy:
24+
max-parallel: 1
25+
fail-fast: false
26+
matrix:
27+
include:
28+
- name: code
29+
id: "0xd3647631C4706be744BE813cD0226e4f149e5aC0"
30+
env_secret: ENV_CODE
31+
- name: research
32+
id: "0x898E1d5603070C7452Ee7F8CF288639A63a217cc"
33+
env_secret: ENV_RESEARCH
34+
- name: negotiation
35+
id: "0x2f751FcEC35D8afA6fbb2d3486443efcc6CC5322"
36+
env_secret: ENV_NEGOTIATION
37+
- name: governance
38+
id: "0x07fB5013B8625af5059Dc1564a964dfBa80Fbd94"
39+
env_secret: ENV_GOVERNANCE
40+
steps:
41+
- name: Install eigenx CLI
42+
if: inputs.app == 'all' || inputs.app == matrix.name
43+
run: |
44+
curl -sL "https://github.com/Layr-Labs/eigenx-cli/releases/download/${EIGENX_VERSION}/eigenx-cli-linux-amd64-${EIGENX_VERSION}.tar.gz" -o eigenx.tgz
45+
tar xzf eigenx.tgz
46+
BIN=$(find . -maxdepth 2 -name eigenx -type f | head -1)
47+
sudo install "$BIN" /usr/local/bin/eigenx
48+
49+
- name: Upgrade ${{ matrix.name }} judge
50+
if: inputs.app == 'all' || inputs.app == matrix.name
51+
env:
52+
EIGENX_PRIVATE_KEY: ${{ secrets.EIGENX_PRIVATE_KEY }}
53+
APP_ENV_FILE: ${{ secrets[matrix.env_secret] }}
54+
run: |
55+
printf '%s' "$APP_ENV_FILE" > app.env
56+
eigenx app upgrade "${{ matrix.id }}" "${{ inputs.image }}" \
57+
--env-file app.env --environment mainnet-alpha --disable-telemetry
58+
rm -f app.env

0 commit comments

Comments
 (0)