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
b37a5c89
Unverified
Commit
b37a5c89
authored
Dec 20, 2021
by
Ben Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI for l2geth-exporter
parent
de3e1a66
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
0 deletions
+89
-0
publish-canary.yml
.github/workflows/publish-canary.yml
+38
-0
release.yml
.github/workflows/release.yml
+38
-0
Dockerfile.l2geth-exporter
ops/docker/Dockerfile.l2geth-exporter
+12
-0
package.json
package.json
+1
-0
No files found.
.github/workflows/publish-canary.yml
View file @
b37a5c89
...
...
@@ -28,6 +28,7 @@ jobs:
proxyd
:
${{ steps.packages.outputs.proxyd }}
rpc-proxy
:
${{ steps.packages.outputs.rpc-proxy }}
op-exporter
:
${{ steps.packages.outputs.op-exporter }}
l2geth-exporter
:
${{ steps.packages.outputs.l2geth-exporter }}
steps
:
-
name
:
Check out source code
...
...
@@ -443,6 +444,43 @@ jobs:
GITCOMMIT=${{ steps.build_args.outputs.GITCOMMIT }}
GITVERSION=${{ steps.build_args.outputs.GITVERSION }}
l2geth-exporter
:
name
:
Publish l2geth-exporter Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
needs
:
canary-publish
if
:
needs.canary-publish.outputs.l2geth-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/l2geth-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.l2geth-exporter
push
:
true
tags
:
ethereumoptimism/l2geth-exporter:${{ needs.canary-publish.outputs.l2geth-exporter }}
build-args
:
|
GITDATE=${{ steps.build_args.outputs.GITDATE }}
GITCOMMIT=${{ steps.build_args.outputs.GITCOMMIT }}
GITVERSION=${{ steps.build_args.outputs.GITVERSION }}
rpc-proxy
:
name
:
Publish rpc-proxy Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
needs
:
canary-publish
...
...
.github/workflows/release.yml
View file @
b37a5c89
...
...
@@ -24,6 +24,7 @@ jobs:
rpc-proxy
:
${{ steps.packages.outputs.rpc-proxy }}
hardhat-node
:
${{ steps.packages.outputs.hardhat-node }}
op-exporter
:
${{ steps.packages.outputs.op-exporter }}
l2geth-exporter
:
${{ steps.packages.outputs.l2geth-exporter }}
steps
:
-
name
:
Checkout Repo
...
...
@@ -196,6 +197,43 @@ jobs:
GITCOMMIT=${{ steps.build_args.outputs.GITCOMMIT }}
GITVERSION=${{ steps.build_args.outputs.GITVERSION }}
l2geth-exporter
:
name
:
Publish l2geth-exporter Version ${{ needs.release.outputs.l2geth-exporter}}
needs
:
release
if
:
needs.release.outputs.l2geth-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/l2geth-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.l2geth-exporter
push
:
true
tags
:
ethereumoptimism/l2geth-exporter:${{ needs.release.outputs.l2geth-exporter }},ethereumoptimism/l2geth-exporter:latest
build-args
:
|
GITDATE=${{ steps.build_args.outputs.GITDATE }}
GITCOMMIT=${{ steps.build_args.outputs.GITCOMMIT }}
GITVERSION=${{ steps.build_args.outputs.GITVERSION }}
op-exporter
:
name
:
Publish op-exporter Version ${{ needs.release.outputs.op-exporter}}
needs
:
release
...
...
ops/docker/Dockerfile.l2geth-exporter
0 → 100644
View file @
b37a5c89
FROM golang:1.16 as builder
ADD ./go/l2geth-exporter /app/
WORKDIR /app/
RUN make build
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/l2geth-exporter /usr/local/bin/
ENTRYPOINT ["l2geth-exporter"]
CMD ["--help"]
package.json
View file @
b37a5c89
...
...
@@ -11,6 +11,7 @@
"specs"
,
"go/gas-oracle"
,
"go/batch-submitter"
,
"go/l2geth-exporter"
,
"go/proxyd"
,
"go/op-exporter"
,
"ops/docker/rpc-proxy"
,
...
...
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