Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
3f563420
Unverified
Commit
3f563420
authored
Dec 07, 2021
by
Ben Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed op-exporter and added CI
parent
c5a8db93
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
54 additions
and
4 deletions
+54
-4
six-shrimps-flash.md
.changeset/six-shrimps-flash.md
+5
-0
publish-canary.yml
.github/workflows/publish-canary.yml
+38
-0
.gitignore
go/op-exporter/.gitignore
+0
-0
Makefile
go/op-exporter/Makefile
+0
-0
README.md
go/op-exporter/README.md
+0
-0
collector.go
go/op-exporter/collector.go
+0
-0
go.mod
go/op-exporter/go.mod
+1
-1
go.sum
go/op-exporter/go.sum
+0
-0
main.go
go/op-exporter/k8sClient/main.go
+0
-0
main.go
go/op-exporter/main.go
+0
-0
package.json
go/op-exporter/package.json
+6
-0
rpc.go
go/op-exporter/rpc.go
+0
-0
version.go
go/op-exporter/version/version.go
+0
-0
Dockerfile.op-exporter
ops/docker/Dockerfile.op-exporter
+3
-3
package.json
package.json
+1
-0
No files found.
.changeset/six-shrimps-flash.md
0 → 100644
View file @
3f563420
---
'
@eth-optimism/op-exporter'
:
patch
---
Cleanup op-exporter CI, renamed package
.github/workflows/publish-canary.yml
View file @
3f563420
...
@@ -27,6 +27,7 @@ jobs:
...
@@ -27,6 +27,7 @@ jobs:
canary-docker-tag
:
${{ steps.docker-image-name.outputs.canary-docker-tag }}
canary-docker-tag
:
${{ steps.docker-image-name.outputs.canary-docker-tag }}
proxyd
:
${{ steps.packages.outputs.proxyd }}
proxyd
:
${{ steps.packages.outputs.proxyd }}
rpc-proxy
:
${{ steps.packages.outputs.rpc-proxy }}
rpc-proxy
:
${{ steps.packages.outputs.rpc-proxy }}
op-exporter
:
${{ steps.packages.outputs.op-exporter }}
steps
:
steps
:
-
name
:
Check out source code
-
name
:
Check out source code
...
@@ -405,6 +406,43 @@ jobs:
...
@@ -405,6 +406,43 @@ jobs:
GITCOMMIT=${{ steps.build_args.outputs.GITCOMMIT }}
GITCOMMIT=${{ steps.build_args.outputs.GITCOMMIT }}
GITVERSION=${{ steps.build_args.outputs.GITVERSION }}
GITVERSION=${{ steps.build_args.outputs.GITVERSION }}
op-exporter
:
name
:
Publish op-exporter Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
needs
:
canary-publish
if
:
needs.canary-publish.outputs.op-exporter != ''
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
-
name
:
Set build args
id
:
build_args
run
:
|
echo ::set-output name=GITDATE::"$(date +%d-%m-%Y)"
echo ::set-output name=GITVERSION::$(jq -r .version ./go/op-exporter/package.json)
echo ::set-output name=GITCOMMIT::"$GITHUB_SHA"
-
name
:
Build and push
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./ops/docker/Dockerfile.op-exporter
push
:
true
tags
:
ethereumoptimism/op-exporter:${{ needs.canary-publish.outputs.op-exporter }}
build-args
:
|
GITDATE=${{ steps.build_args.outputs.GITDATE }}
GITCOMMIT=${{ steps.build_args.outputs.GITCOMMIT }}
GITVERSION=${{ steps.build_args.outputs.GITVERSION }}
rpc-proxy
:
rpc-proxy
:
name
:
Publish rpc-proxy Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
name
:
Publish rpc-proxy Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
needs
:
canary-publish
needs
:
canary-publish
...
...
go/op
_
exporter/.gitignore
→
go/op
-
exporter/.gitignore
View file @
3f563420
File moved
go/op
_
exporter/Makefile
→
go/op
-
exporter/Makefile
View file @
3f563420
File moved
go/op
_
exporter/README.md
→
go/op
-
exporter/README.md
View file @
3f563420
File moved
go/op
_
exporter/collector.go
→
go/op
-
exporter/collector.go
View file @
3f563420
File moved
go/op
_
exporter/go.mod
→
go/op
-
exporter/go.mod
View file @
3f563420
module github.com/ethereum-optimism/optimism/go/op
_
exporter
module github.com/ethereum-optimism/optimism/go/op
-
exporter
go 1.16
go 1.16
...
...
go/op
_
exporter/go.sum
→
go/op
-
exporter/go.sum
View file @
3f563420
File moved
go/op
_
exporter/k8sClient/main.go
→
go/op
-
exporter/k8sClient/main.go
View file @
3f563420
File moved
go/op
_
exporter/main.go
→
go/op
-
exporter/main.go
View file @
3f563420
File moved
go/op-exporter/package.json
0 → 100644
View file @
3f563420
{
"name"
:
"@eth-optimism/op-exporter"
,
"version"
:
"0.5.0"
,
"private"
:
true
,
"devDependencies"
:
{}
}
go/op
_
exporter/rpc.go
→
go/op
-
exporter/rpc.go
View file @
3f563420
File moved
go/op
_
exporter/version/version.go
→
go/op
-
exporter/version/version.go
View file @
3f563420
File moved
ops/docker/Dockerfile.op
_
exporter
→
ops/docker/Dockerfile.op
-
exporter
View file @
3f563420
FROM golang:1.16 as builder
FROM golang:1.16 as builder
ADD ./go/op
_
exporter /app/
ADD ./go/op
-
exporter /app/
WORKDIR /app/
WORKDIR /app/
RUN make build
RUN make build
FROM alpine:latest
FROM alpine:latest
RUN apk --no-cache add ca-certificates
RUN apk --no-cache add ca-certificates
WORKDIR /root/
WORKDIR /root/
COPY --from=builder /app/op
_
exporter /usr/local/bin/
COPY --from=builder /app/op
-
exporter /usr/local/bin/
ENTRYPOINT ["op
_
exporter"]
ENTRYPOINT ["op
-
exporter"]
CMD ["--help"]
CMD ["--help"]
package.json
View file @
3f563420
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
"go/gas-oracle"
,
"go/gas-oracle"
,
"go/batch-submitter"
,
"go/batch-submitter"
,
"go/proxyd"
,
"go/proxyd"
,
"go/op-exporter"
,
"ops/docker/rpc-proxy"
,
"ops/docker/rpc-proxy"
,
"ops/docker/hardhat"
"ops/docker/hardhat"
],
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment