Skip to content

Commit ed1675e

Browse files
Merge branch 'op-es' into delta_testnet
2 parents ceadbfe + fec8b8d commit ed1675e

File tree

917 files changed

+46697
-17164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

917 files changed

+46697
-17164
lines changed

.circleci/config.yml

Lines changed: 826 additions & 782 deletions
Large diffs are not rendered by default.

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,12 @@ indent_style = tab
1919
[Makefile]
2020
indent_size = 2
2121
indent_style = tab
22+
23+
# shell scripts
24+
[*.sh]
25+
shell_variant = bash
26+
indent_style = space
27+
indent_size = 2
28+
binary_next_line = true
29+
switch_case_indent = true
30+
space_redirects = true

.github/workflows/protected.yaml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: bake
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
branches:
8+
- 'develop'
9+
10+
jobs:
11+
prep:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
sanitised_ref_name: ${{ steps.sanitize.outputs.ref_name }}
15+
versions: ${{ steps.compute_versions.outputs.versions }}
16+
kona_version: ${{ steps.kona.outputs.version }}
17+
steps:
18+
- name: harden-runner
19+
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2
20+
with:
21+
egress-policy: audit
22+
- name: Checkout
23+
uses: actions/checkout@71cf2267d89c5cb81562390fa70a37fa40b1305e # v6
24+
with:
25+
fetch-depth: 0 # Need full history for git tag operations
26+
- name: Sanitize ref_name
27+
id: sanitize
28+
run: echo "ref_name=$(echo ${{ github.ref_name }} | sed 's/[^a-zA-Z0-9.]/-/g')" >> $GITHUB_OUTPUT
29+
- name: Read KONA_VERSION from kona/version.json
30+
id: kona
31+
run: |
32+
KONA_VERSION=$(jq -r .version kona/version.json)
33+
echo "version=$KONA_VERSION" >> $GITHUB_OUTPUT
34+
echo "KONA_VERSION: $KONA_VERSION"
35+
- name: Compute GIT_VERSION for all images
36+
id: compute_versions
37+
run: |
38+
VERSIONS=$(GIT_COMMIT="${{ github.sha }}" make compute-git-versions)
39+
echo "versions=$VERSIONS" >> $GITHUB_OUTPUT
40+
echo "Computed versions: $VERSIONS"
41+
42+
build:
43+
needs: prep
44+
strategy:
45+
fail-fast: false
46+
matrix:
47+
image_name:
48+
- op-node
49+
- op-batcher
50+
- op-deployer
51+
- op-faucet
52+
- op-program
53+
- op-proposer
54+
- op-challenger
55+
- op-dispute-mon
56+
- op-conductor
57+
- da-server
58+
- op-supervisor
59+
- op-supernode
60+
- op-test-sequencer
61+
- cannon
62+
- op-dripper
63+
- op-interop-mon
64+
uses: ethereum-optimism/factory/.github/workflows/docker-bake.yaml@753bcd4284a6d36eac6e31df2492015ab8650331
65+
with:
66+
image_name: ${{ matrix.image_name }}
67+
bake_file: docker-bake.hcl
68+
target: ${{ matrix.image_name }}
69+
tag: ${{ needs.prep.outputs.sanitised_ref_name }}
70+
gcp_project_id: ${{ vars.GCP_PROJECT_ID_OPLABS_TOOLS_ARTIFACTS }}
71+
registry: us-docker.pkg.dev/oplabs-tools-artifacts/oss
72+
attest: true
73+
env: |
74+
GIT_VERSION=${{ fromJson(needs.prep.outputs.versions)[matrix.image_name] }}
75+
KONA_VERSION=${{ needs.prep.outputs.kona_version }}
76+
set: |
77+
*.args.GIT_COMMIT=${{ github.sha }}
78+
*.args.GIT_DATE=${{ github.event.head_commit.timestamp }}
79+
permissions:
80+
contents: read
81+
id-token: write
82+
attestations: write

.github/workflows/unprotected.yaml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: bake (PR)
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'develop'
7+
paths:
8+
- 'ops/docker/**'
9+
- 'packages/contracts-bedrock/**'
10+
- 'docker-bake.hcl'
11+
- '.github/workflows/unprotected.yaml'
12+
- 'ops/scripts/compute-git-versions.sh'
13+
14+
jobs:
15+
prep:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
versions: ${{ steps.compute_versions.outputs.versions }}
19+
kona_version: ${{ steps.kona.outputs.version }}
20+
date: ${{ steps.date.outputs.date }}
21+
steps:
22+
- name: Get date
23+
id: date
24+
run: |
25+
DATE=$(date +%Y%m%d)
26+
echo "date=$DATE" >> $GITHUB_OUTPUT
27+
- name: harden-runner
28+
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2
29+
with:
30+
egress-policy: audit
31+
- name: Checkout
32+
uses: actions/checkout@71cf2267d89c5cb81562390fa70a37fa40b1305e # v6
33+
with:
34+
fetch-depth: 0 # Need full history for git tag operations
35+
- name: Read KONA_VERSION from kona/version.json
36+
id: kona
37+
run: |
38+
KONA_VERSION=$(jq -r .version kona/version.json)
39+
echo "version=$KONA_VERSION" >> $GITHUB_OUTPUT
40+
echo "KONA_VERSION: $KONA_VERSION"
41+
- name: Compute GIT_VERSION for all images
42+
id: compute_versions
43+
run: |
44+
VERSIONS=$(GIT_COMMIT="${{ github.sha }}" make compute-git-versions)
45+
echo "versions=$VERSIONS" >> $GITHUB_OUTPUT
46+
echo "Computed versions: $VERSIONS"
47+
48+
build:
49+
needs: prep
50+
strategy:
51+
fail-fast: false
52+
matrix:
53+
image_name:
54+
- op-node
55+
- op-batcher
56+
- op-deployer
57+
- op-faucet
58+
- op-program
59+
- op-proposer
60+
- op-challenger
61+
- op-dispute-mon
62+
- op-conductor
63+
- da-server
64+
- op-supervisor
65+
- op-supernode
66+
- op-test-sequencer
67+
- cannon
68+
- op-dripper
69+
- op-interop-mon
70+
uses: ethereum-optimism/factory/.github/workflows/docker-bake.yaml@753bcd4284a6d36eac6e31df2492015ab8650331
71+
with:
72+
image_name: ${{ matrix.image_name }}
73+
bake_file: docker-bake.hcl
74+
target: ${{ matrix.image_name }}
75+
tag: 24h
76+
registry: ttl.sh/${{ github.sha }}
77+
attest: false
78+
env: |
79+
GIT_VERSION=${{ fromJson(needs.prep.outputs.versions)[matrix.image_name] }}
80+
KONA_VERSION=${{ needs.prep.outputs.kona_version }}
81+
set: |
82+
*.args.GIT_COMMIT=${{ github.sha }}
83+
*.args.GIT_DATE=${{ needs.prep.outputs.date }}
84+
permissions:
85+
contents: read
86+
id-token: write
87+
attestations: write

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ __pycache__
5050
crytic-export
5151

5252
# ignore local asdf config
53-
.tool-versions
53+
.tool-versions

0 commit comments

Comments
 (0)