Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
4c6a2a5
Create funding.json
marekolszewski Sep 5, 2024
b5c73c1
Add forkdiff comparison to optimism
karlb Dec 17, 2024
f44ebf5
github: Add docker-build-scan workflow
karlb Dec 17, 2024
51cb410
github: Add docker-op-ufm-build-push workflow
karlb Dec 17, 2024
da947a9
github: Action to deploy op-contracts to Holesky
alvarof2 May 16, 2024
6dbed22
github: Action to deploy celo4 contracts
alvarof2 May 17, 2024
2be3bd0
github: Add `celo-org/op-geth` update action (#263)
ezdac Dec 17, 2024
d85395a
circleci: use public circleci-utils orb
karlb Feb 12, 2025
e92d642
circleci: Simplify CI
karlb Feb 12, 2025
24998f1
circleci: Replace Optimism's resource classes
karlb Feb 4, 2025
26cb873
circleci: use HEAD instead of develop for semgrep
karlb Jan 14, 2025
ad56b02
circleci: Get RPC URLs from env var
karlb Jan 15, 2025
8f59a1a
circleci: force mise install in go-tests job
karlb Feb 12, 2025
2900fa8
ci: Remove upgrade tests for non-OP chains
palango May 19, 2025
b41e7af
ci: Fix missing cannon-prestate-quick
piersy May 8, 2025
3f78858
ci: Skip `test_validate_l1StandardBridge_succeeds`
palango May 19, 2025
ca58894
dependabot: no PRs for version updates
karlb Sep 13, 2023
8c49590
ops: improve update-geth.sh
karlb Jan 8, 2025
a9dbba6
Update op-geth
karlb Jan 10, 2025
f1d957c
Fix build after op-geth update
karlb Feb 11, 2025
f283e56
op-chain-ops: Use noop for unimplemented writeJson
karlb Oct 15, 2024
515414d
Add Celo contracts
pahor167 Aug 29, 2023
d2dc6cc
Fixup for when I added IsGingerbread
piersy May 8, 2025
4102f5e
Enable cel2 fork by default
karlb Sep 19, 2023
f72bb9f
Enable Cel2 in e2e tests
karlb Feb 13, 2024
1b7e1b4
Add token duality e2e test
karlb Sep 27, 2023
e9f9866
Add celo deployment to L2Genesis
palango May 15, 2024
6d4eb16
Add fee currency functions to MintableERC20
karlb Apr 22, 2024
5b07b34
register cUSD to FeeDirectory
pahor167 May 22, 2024
d93bc4b
Disable cUSD in L2 genesis for now
karlb May 28, 2024
9ade353
Fix Genesis contract count test
karlb May 28, 2024
f9a329c
Add feature flag for celo contract deployment
palango Jun 5, 2024
0f4e05f
.gitignore: add .vscode
karlb Dec 17, 2024
6b88d11
Set devAccount[0] as owner of FeeCurrencyDirectory
karlb Jun 24, 2024
45be065
Add e2e test for bridging WETH to L2
karlb Jun 25, 2024
e3ae293
Log out l2 predeploy addresses.
rkachowski Jun 27, 2024
cd8f4c2
contracts: Add map script.
rkachowski Jun 27, 2024
4262fcb
Add viem E2E testsuite
ezdac Jun 10, 2024
bb1772f
Remove deploy-config check for CustomGasToken
ezdac Jul 4, 2024
ebe1da8
op-node: Increase MaxFrameLen to 16 MB
jcortejoso Sep 17, 2024
e07adcc
op-node: Add option to only use finalized blocks as l1origin in seque…
palango Sep 23, 2024
58b780f
Base Fee Floor (fixed) configuration (#231)
gastonponti Sep 24, 2024
2c23f93
sequencer: Use higher sequencer drift for Celo (#251)
karlb Oct 7, 2024
5b978b8
e2e: Use FeeHandler in fee tests
karlb Oct 14, 2024
7e4c607
contract tests: Skip Celo contracts in test_cannotReinitialize_succeeds
karlb Oct 14, 2024
f1d87cf
contracts: versioning for Celo modified contracts
karlb Oct 14, 2024
b2263e6
op-batcher: CLI validation to prevent submitting Blobs into Alt DA (#…
Kourin1996 Nov 27, 2024
a1a00c2
e2e: use `--broadcast` with `forge create` (#281)
karlb Dec 9, 2024
9a868fb
contract tests: Resolve fuzzing test failures for AddressSortedLinked…
Kourin1996 Dec 9, 2024
6821241
CI: Change base-branch for update-geth workflow
ezdac Jan 8, 2025
86c850d
contracts: Update allowed interface list with Celo interfaces
karlb Jan 14, 2025
d63c088
contracts: Revert to upstream L2Genesis.s.sol
karlb Jan 21, 2025
58f1572
contracts: disable interface check for IERC20Upgradeable
karlb Jan 29, 2025
fc122e2
Update snapshots
karlb Jan 14, 2025
b54b7b5
Update semver-lock
karlb Jan 29, 2025
b1e1f65
contracts: Skip semver check for now
karlb Jan 29, 2025
a76f972
contracts: don't include celo contracts in count
karlb Jan 29, 2025
fe790e7
Fix `test_cannotReinitialize_succeeds` out of bounds
palango Feb 4, 2025
5e4be60
Fix update-geth.sh (#304)
piersy Feb 4, 2025
2fbe471
The substitution was failing in the docker file since (#309)
piersy Feb 5, 2025
bb41738
Add `celo-org/op-geth` dependencies update script and gh-action (#263)
ezdac Dec 17, 2024
9f6c692
Fix fee-currency-directory predeploy address (#285)
ezdac Dec 20, 2024
96a7c38
op-e2e: Skip regolith tests
karlb Feb 4, 2025
f46392f
Update update geth approach (#319)
piersy Feb 14, 2025
f310c92
feat(batcher): multi-frame altda channels (#310)
gastonponti Feb 14, 2025
43ccda9
feat(batcher): op batcher altda failover to ethda (#311)
gastonponti Feb 14, 2025
b27e79a
fix(node) Altda failover to ethda should keep finalizing l2 chain (#316)
gastonponti Feb 14, 2025
b3036ea
Add optional Celo fields for strict deploy-config parsing (#362)
ezdac Mar 14, 2025
1a5587d
use step-security replacement for tj-actions/changed-files
pputman-clabs Mar 16, 2025
758c7cd
Initialize L1 Safe and Finalized head in SyncStatus at OpNode startup…
Kourin1996 Mar 21, 2025
aa863b7
Add Prometheus metrics for AltDA failover in Batcher (#361)
Kourin1996 Apr 3, 2025
7851828
contracts: scripts for L2 token deployment/verification (#375)
karlb Apr 11, 2025
fa7d887
Fix Test_ProgramAction_OperatorFeeConsistency tests (#381)
piersy May 20, 2025
bf42a54
Change update-geth base-branch to 'celo-rebase-13' (#382)
ezdac May 23, 2025
af85a09
Update op-geth
karlb Jan 10, 2025
950efb1
WIP: Enable devnet for rebase-13
Kourin1996 May 17, 2025
fe24d02
[WIP] Add AltDA support, change chain ID, and fix genesis hash calcul…
Kourin1996 May 19, 2025
8a568a1
Revert simple.yaml
Kourin1996 May 25, 2025
d77dcc3
Add celo-isthmus-devnet
Kourin1996 May 27, 2025
0ce80de
Revert "Update op-geth"
Kourin1996 May 27, 2025
c757409
Remove debug code
Kourin1996 May 27, 2025
b66960d
Remove debug code
Kourin1996 May 27, 2025
15a5507
Cherry-pick Altda parallel submitted blobs respect strict holocene or…
gastonponti May 27, 2025
5beb67c
Add --miner.gasprice=1 to L1 execution client for celo-isthmus-devnet
Kourin1996 May 28, 2025
35db018
Replace protocol schema in URL with https instead of ssh
Kourin1996 Jun 4, 2025
375d383
isthmus: Add hardfork timestamps
palango May 27, 2025
7c00f8f
Allow to override with flags the celo forks
gastonponti May 28, 2025
8298eff
Add default to switch for lint
gastonponti May 28, 2025
db6e149
chore: Update to latest op-geth
palango May 28, 2025
847c9b4
ci: Remove shell-check (#391)
palango Jun 4, 2025
4baadb7
isthmus: Update L1Block contract bytecode (#390)
palango Jun 4, 2025
bf9250d
Convert `gen_l2_token_cmds` to std sh (#392)
palango Jun 10, 2025
bd0d074
Add celo-isthmus-devnet-minimal
Kourin1996 Jun 11, 2025
7ecb713
Fix setup-local-repo-rebase-13.sh to pass CI
Kourin1996 Jun 11, 2025
4d8d8f3
Update kurtosis.yml to change URL of optimism-package
Kourin1996 Jun 11, 2025
862168b
Update branch in justfile
Kourin1996 Jun 12, 2025
5f560e2
Update celo-isthmus-devnet-minimal.yaml
seolaoh Jun 20, 2025
875a569
Fix celo-isthmus-minimal.yaml for succinct
Kourin1996 Jun 24, 2025
7ab2648
Merge remote-tracking branch 'origin/Kourin1996/celo-rebase-13-devnet…
Kourin1996 Jun 24, 2025
6e378a6
Disabled proposer and challenger in celo-isthmus-minimal-devnet
Kourin1996 Jun 24, 2025
9e968f0
Add --safedb.path=/safe-db in celo-isthmus-minimal
Kourin1996 Jun 24, 2025
7d22bcb
Merge remote-tracking branch 'origin/celo-rebase-13' into Kourin1996/…
Kourin1996 Jun 27, 2025
5be0a95
Improve batcher parameters for demo
Kourin1996 Jun 27, 2025
1006ce3
clean up celo-isthmus.yaml
Kourin1996 Jul 7, 2025
30d18e8
Remove celo-isthmus-minimal.yml
Kourin1996 Jul 7, 2025
8cefa6f
Add comments
Kourin1996 Jul 11, 2025
68065e0
Rename configs in celo-isthmus.yaml
Kourin1996 Jul 17, 2025
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
228 changes: 53 additions & 175 deletions .circleci/config.yml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ build/_workspace
build/bin
build/_bin
tests/testdata

# Ignore generated credentials from google-github-actions/auth
gha-creds-*.json
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ updates:
day: "tuesday"
time: "14:30"
timezone: "America/New_York"
open-pull-requests-limit: 10
open-pull-requests-limit: 0
commit-message:
prefix: "dependabot(gomod): "
labels:
Expand Down
99 changes: 99 additions & 0 deletions .github/workflows/contracts-celo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Alfajores-Holesky Deploy Celo4 L1 Contracts
on:
workflow_dispatch:
inputs:
deploy_contracts:
required: false
type: boolean
default: true
contracts_tag:
required: false
type: string
default: 'celo4'
deployment_context:
required: false
type: string
default: 'test-celo4'
l2_chain_id:
required: false
default: '42069'

jobs:
deploy-contracts:
runs-on: ubuntu-latest
permissions: # Must change the job token permissions to use Akeyless JWT auth
id-token: write
contents: read
if: ${{ ! startsWith(github.triggering_actor, 'akeyless') }}
env:
DEPLOY_CONTRACTS: ${{ github.event_name == 'push' && 'true' || inputs.deploy_contracts }}
CONTRACTS_TAG: ${{ github.event_name == 'push' && 'op-contracts/v1.3.0' || inputs.contracts_tag }}
DEPLOYMENT_CONTEXT: ${{ github.event_name == 'push' && 'test' || inputs.deployment_context }}
L2_CHAIN_ID: ${{ github.event_name == 'push' && '42069' || inputs.l2_chain_id }}
L1_CHAIN_ID: '17000' # Holesky
L1_RPC_URL: 'https://ethereum-holesky-rpc.publicnode.com'
GS_ADMIN_ADDRESS: '0xb2397dF29AFB4B4661559436180019bEb7912985'
GS_BATCHER_ADDRESS: '0x7fDBe8F4D22ab511340667d7Ce5675568d09eBB4'
GS_PROPOSER_ADDRESS: '0xdCf30236Fa0aBE2ca0BEc2eE0a2F40b16A144DB3'
GS_SEQUENCER_ADDRESS: '0x3e2Df8efB6fA1d6E6021572a99BB67BA9ab2C59D'
steps:

- name: "Get GitHub Token from Akeyless"
id: get_auth_token
uses:
docker://us-west1-docker.pkg.dev/devopsre/akeyless-public/akeyless-action:latest
with:
api-url: https://api.gateway.akeyless.celo-networks-dev.org
access-id: p-kf9vjzruht6l
dynamic-secrets: '{"/dynamic-secrets/keys/github/optimism/contents=write,pull_requests=write":"PAT"}'

# "/static-secrets/devops-circle/alfajores/op-testnet-alfajores/HOLESKY_QUICKNODE_URL":"L1_RPC_URL",
- name: Akeyless get secrets
uses: docker://us-west1-docker.pkg.dev/devopsre/akeyless-public/akeyless-action:latest
with:
api-url: https://api.gateway.akeyless.celo-networks-dev.org
access-id: p-kf9vjzruht6l
static-secrets: '{
"/static-secrets/devops-circle/alfajores/op-testnet-alfajores/GS_ADMIN_PRIVATE_KEY":"GS_ADMIN_PRIVATE_KEY"
}'

- name: "Checkout"
uses: actions/checkout@v4
with:
token: ${{ env.PAT }}
submodules: recursive
fetch-depth: 0

- name: Setup
uses: ./.github/actions/setup

- name: Generate config JSON
run: |
cd packages/contracts-bedrock
./scripts/getting-started/config-vars-celo.sh
- name: Deploy L1 contracts
if: ${{ env.DEPLOY_CONTRACTS != 'false' }}
run: |
export IMPL_SALT=$(openssl rand -hex 32)
cd packages/contracts-bedrock
echo "Broadcasting ..."
forge script scripts/Deploy.s.sol:Deploy --private-key $GS_ADMIN_PRIVATE_KEY --broadcast --rpc-url $L1_RPC_URL --legacy
- name: Generate genesis files
run: |
mkdir -p l2-config-files/$DEPLOYMENT_CONTEXT
cd op-node
go run cmd/main.go genesis l2 \
--deploy-config ../packages/contracts-bedrock/deploy-config/$DEPLOYMENT_CONTEXT.json \
--l1-deployments ../packages/contracts-bedrock/deployments/$DEPLOYMENT_CONTEXT/.deploy \
--outfile.l2 ../l2-config-files/$DEPLOYMENT_CONTEXT/genesis-$(date +%s).json \
--outfile.rollup ../l2-config-files/$DEPLOYMENT_CONTEXT/rollup-$(date +%s).json \
--l1-rpc $L1_RPC_URL
- name: "Commit genesis files"
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '[Automatic] - Commit genesis files'
branch: alvarof2/contracts
file_pattern: 'l2-config-files packages/contracts-bedrock/**'
117 changes: 117 additions & 0 deletions .github/workflows/contracts-op-stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
name: Alfajores-Holesky Deploy OP-Stack L1 Contracts
on:
workflow_dispatch:
inputs:
deploy_contracts:
required: false
type: boolean
default: true
contracts_tag:
required: false
type: string
default: 'op-contracts/v1.3.0'
deployment_context:
required: false
type: string
default: 'test-alvaro'
l2_chain_id:
required: false
default: '42069'

jobs:
deploy-contracts:
runs-on: ubuntu-latest
permissions: # Must change the job token permissions to use Akeyless JWT auth
id-token: write
contents: read
if: ${{ ! startsWith(github.triggering_actor, 'akeyless') }}
env:
DEPLOY_CONTRACTS: ${{ github.event_name == 'push' && 'true' || inputs.deploy_contracts }}
CONTRACTS_TAG: ${{ github.event_name == 'push' && 'op-contracts/v1.3.0' || inputs.contracts_tag }}
DEPLOYMENT_CONTEXT: ${{ github.event_name == 'push' && 'test' || inputs.deployment_context }}
L2_CHAIN_ID: ${{ github.event_name == 'push' && '42069' || inputs.l2_chain_id }}
L1_CHAIN_ID: '17000' # Holesky
L1_RPC_URL: 'https://ethereum-holesky-rpc.publicnode.com'
GS_ADMIN_ADDRESS: '0xb2397dF29AFB4B4661559436180019bEb7912985'
GS_BATCHER_ADDRESS: '0x7fDBe8F4D22ab511340667d7Ce5675568d09eBB4'
GS_PROPOSER_ADDRESS: '0xdCf30236Fa0aBE2ca0BEc2eE0a2F40b16A144DB3'
GS_SEQUENCER_ADDRESS: '0x3e2Df8efB6fA1d6E6021572a99BB67BA9ab2C59D'
steps:

- name: "Get GitHub Token from Akeyless"
id: get_auth_token
uses:
docker://us-west1-docker.pkg.dev/devopsre/akeyless-public/akeyless-action:latest
with:
api-url: https://api.gateway.akeyless.celo-networks-dev.org
access-id: p-kf9vjzruht6l
dynamic-secrets: '{"/dynamic-secrets/keys/github/optimism/contents=write,pull_requests=write":"PAT"}'

# "/static-secrets/devops-circle/alfajores/op-testnet-alfajores/HOLESKY_QUICKNODE_URL":"L1_RPC_URL",
- name: Akeyless get secrets
uses: docker://us-west1-docker.pkg.dev/devopsre/akeyless-public/akeyless-action:latest
with:
api-url: https://api.gateway.akeyless.celo-networks-dev.org
access-id: p-kf9vjzruht6l
static-secrets: '{
"/static-secrets/devops-circle/alfajores/op-testnet-alfajores/GS_ADMIN_PRIVATE_KEY":"GS_ADMIN_PRIVATE_KEY"
}'

- name: "Checkout"
uses: actions/checkout@v4
with:
token: ${{ env.PAT }}
submodules: recursive
fetch-depth: 0

- name: "Checkout OP Repo"
uses: actions/checkout@v4
with:
repository: 'ethereum-optimism/optimism'
ref: '${{ env.CONTRACTS_TAG }}'
path: ethereum-optimism
submodules: recursive
fetch-depth: 0

- name: Setup
uses: ./.github/actions/setup

- name: Generate config JSON
run: |
cd packages/contracts-bedrock
./scripts/getting-started/config-vars-op-stack.sh
cp deploy-config/$DEPLOYMENT_CONTEXT.json /home/runner/work/optimism/optimism/ethereum-optimism/packages/contracts-bedrock/deploy-config/$DEPLOYMENT_CONTEXT.json
- name: Deploy L1 contracts
if: ${{ env.DEPLOY_CONTRACTS != 'false' }}
run: |
export IMPL_SALT=$(openssl rand -hex 32)
cd ethereum-optimism/packages/contracts-bedrock
echo "Broadcasting ..."
forge script scripts/Deploy.s.sol:Deploy --private-key $GS_ADMIN_PRIVATE_KEY --broadcast --rpc-url $L1_RPC_URL --legacy
mkdir -p /home/runner/work/optimism/optimism/packages/contracts-bedrock/deployments/$DEPLOYMENT_CONTEXT
cp deployments/$DEPLOYMENT_CONTEXT/.deploy /home/runner/work/optimism/optimism/packages/contracts-bedrock/deployments/$DEPLOYMENT_CONTEXT/.deploy
- name: Copy old .deploy file if contracts not deployed
if: ${{ env.DEPLOY_CONTRACTS == 'false' }}
run: |
mkdir -p ethereum-optimism/packages/contracts-bedrock/deployments/$DEPLOYMENT_CONTEXT
cp packages/contracts-bedrock/deployments/$DEPLOYMENT_CONTEXT/.deploy ethereum-optimism/packages/contracts-bedrock/deployments/$DEPLOYMENT_CONTEXT/.deploy
- name: Generate genesis files
run: |
mkdir -p l2-config-files/$DEPLOYMENT_CONTEXT
cd ethereum-optimism/op-node
go run cmd/main.go genesis l2 \
--deploy-config ../packages/contracts-bedrock/deploy-config/$DEPLOYMENT_CONTEXT.json \
--l1-deployments ../packages/contracts-bedrock/deployments/$DEPLOYMENT_CONTEXT/.deploy \
--outfile.l2 ../../l2-config-files/$DEPLOYMENT_CONTEXT/genesis-$(date +%s).json \
--outfile.rollup ../../l2-config-files/$DEPLOYMENT_CONTEXT/rollup-$(date +%s).json \
--l1-rpc $L1_RPC_URL
- name: "Commit genesis files"
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '[Automatic] - Commit genesis files'
branch: alvarof2/contracts
file_pattern: 'l2-config-files packages/contracts-bedrock/**'
70 changes: 70 additions & 0 deletions .github/workflows/docker-build-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Docker Build Scan
on:
pull_request:
branches:
- 'master'
- 'celo*'
push:
branches:
- 'master'
- 'celo*'
workflow_dispatch:

jobs:
detect-files-changed:
runs-on: ubuntu-latest
outputs:
files-changed: ${{ steps.detect-files-changed.outputs.all_changed_files }}
steps:
- uses: actions/checkout@v4
- name: Detect files changed
id: detect-files-changed
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1
with:
separator: ','

# Build op-node op-batcher op-proposer using docker-bake
build-op-stack:
runs-on: ubuntu-latest
needs: detect-files-changed
if: |
contains(needs.detect-files-changed.outputs.files-changed, 'go.sum') ||
contains(needs.detect-files-changed.outputs.files-changed, 'ops/docker') ||
contains(needs.detect-files-changed.outputs.files-changed, 'op-node/') ||
contains(needs.detect-files-changed.outputs.files-changed, 'op-batcher/') ||
contains(needs.detect-files-changed.outputs.files-changed, 'op-conductor/') ||
contains(needs.detect-files-changed.outputs.files-changed, 'op-challenger/') ||
contains(needs.detect-files-changed.outputs.files-changed, 'op-dispute-mon/') ||
contains(needs.detect-files-changed.outputs.files-changed, 'op-proposer/') ||
contains(needs.detect-files-changed.outputs.files-changed, 'op-service/') ||
contains(needs.detect-files-changed.outputs.files-changed, '.github/workflows/docker-build-scan.yaml') ||
github.event_name == 'workflow_dispatch' ||
true
permissions:
contents: read
id-token: write
security-events: write
env:
GIT_COMMIT: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
GIT_DATE: ${{ github.event.head_commit.timestamp }}
IMAGE_TAGS: ${{ (github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/celo')) && 'latest,' || '') }}${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
REGISTRY: us-west1-docker.pkg.dev
REPOSITORY: blockchaintestsglobaltestnet/dev-images
steps:
- uses: actions/checkout@v4
- name: Login at GCP Artifact Registry
uses: celo-org/reusable-workflows/.github/actions/[email protected]
with:
workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-optimism/providers/github-by-repos'
service-account: '[email protected]'
docker-gcp-registries: us-west1-docker.pkg.dev
# We need a custom steps as it's using docker bake
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/bake-action@v5
with:
push: true
source: .
files: docker-bake.hcl
targets: op-node,op-batcher,op-proposer,op-conductor,op-challenger,op-dispute-mon
41 changes: 41 additions & 0 deletions .github/workflows/docker-op-ufm-build-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Build op-ufm container and push to cLabs registry
on:
push:
branches:
- cel4
paths:
# Run if any of the following files are changed
- 'op-ufm/**'
workflow_dispatch:

jobs:
build:
runs-on: ['self-hosted', 'org', '8-cpu']
permissions: # Required for workload identity auth and push the trivy results to GitHub
contents: read
id-token: write
security-events: write
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Authenticate to Google Cloud
uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@main
with:
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-optimism/providers/github-by-repos
service-account: [email protected]
access-token-lifetime: "60m"
docker-gcp-registries: us-west1-docker.pkg.dev

- name: Build, push and scan the container
uses: celo-org/reusable-workflows/.github/actions/build-container@main
with:
platforms: linux/amd64
registry: us-west1-docker.pkg.dev/devopsre/dev-images/op-ufm
tags: test
context: .
dockerfile: op-ufm/Dockerfile
push: true
trivy: false
36 changes: 36 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and publish forkdiff github-pages
permissions:
contents: write
on:
push:
branches:
- celo[0-9]+

workflow_dispatch:

jobs:
deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # make sure to fetch the old commit we diff against

- name: Build forkdiff
uses: "docker://protolambda/forkdiff:0.1.0"
with:
args: -repo=/github/workspace -fork=/github/workspace/fork.yaml -out=/github/workspace/index.html

- name: Build pages
run: |
mkdir -p tmp/pages
mv index.html tmp/pages/index.html
touch tmp/pages/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: tmp/pages
clean: true
Loading