Skip to content

Commit 020b543

Browse files
authored
ci: add GitHub Actions workflow to build, attest and sign op-geth docker image (#720)
Signed-off-by: falcorocks <[email protected]>
1 parent aa94053 commit 020b543

File tree

3 files changed

+26
-23
lines changed

3 files changed

+26
-23
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Auto detect text files and perform LF normalization
22
* text=auto
33
*.sol linguist-language=Solidity
4+
# Keep our local workflow files when merging from upstream
5+
.github/workflows/* merge=ours

.github/workflows/op-geth.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: op-geth
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
uses: ethereum-optimism/factory/.github/workflows/docker-build.yaml@c8bcfc1a537d01a005a09276b1b673dca9132540
9+
with:
10+
image_name: ${{ github.workflow }}
11+
context: .
12+
dockerfile: Dockerfile
13+
platforms: linux/amd64,linux/arm64
14+
gcp_project_id: ${{ vars.GCP_PROJECT_ID_OPLABS_TOOLS_ARTIFACTS }}
15+
gcp_registry: us-docker.pkg.dev/oplabs-tools-artifacts/oss
16+
build_args: |
17+
VERSION=${{ github.ref_type == 'tag' && github.ref_name || '' }}
18+
COMMIT=${{ github.sha }}
19+
BUILDNUM=${{ github.run_number }}
20+
permissions:
21+
contents: read
22+
id-token: write
23+
attestations: write
24+

.github/workflows/validate_pr.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)