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
c0574243
Unverified
Commit
c0574243
authored
Nov 04, 2021
by
Ben Wilson
Committed by
GitHub
Nov 04, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1690 from ethereum-optimism/bwilson/build-proxyd
Update proxyd github actions
parents
e70e762b
6e6a55b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
26 deletions
+25
-26
sixty-countries-know.md
.changeset/sixty-countries-know.md
+5
-0
publish-canary.yml
.github/workflows/publish-canary.yml
+14
-10
Dockerfile
go/proxyd/Dockerfile
+6
-12
Makefile
go/proxyd/Makefile
+0
-4
No files found.
.changeset/sixty-countries-know.md
0 → 100644
View file @
c0574243
---
'
@eth-optimism/proxyd'
:
patch
---
Canary release
.github/workflows/publish-canary.yml
View file @
c0574243
...
@@ -23,8 +23,8 @@ jobs:
...
@@ -23,8 +23,8 @@ jobs:
contracts
:
${{ steps.packages.outputs.contracts }}
contracts
:
${{ steps.packages.outputs.contracts }}
replica-healthcheck
:
${{ steps.packages.outputs.replica-healthcheck }}
replica-healthcheck
:
${{ steps.packages.outputs.replica-healthcheck }}
canary-docker-tag
:
${{ steps.docker-image-name.outputs.canary-docker-tag }}
canary-docker-tag
:
${{ steps.docker-image-name.outputs.canary-docker-tag }}
proxyd
:
${{ steps.
canary-publish
.outputs.proxyd }}
proxyd
:
${{ steps.
packages
.outputs.proxyd }}
rpc-proxy
:
${{ steps.
canary-publish
.outputs.rpc-proxy }}
rpc-proxy
:
${{ steps.
packages
.outputs.rpc-proxy }}
steps
:
steps
:
-
name
:
Check out source code
-
name
:
Check out source code
...
@@ -315,7 +315,7 @@ jobs:
...
@@ -315,7 +315,7 @@ jobs:
name
:
Publish proxyd Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
name
:
Publish proxyd Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
needs
:
canary-publish
needs
:
canary-publish
if
:
needs.canary-publish.outputs.proxyd != ''
if
:
needs.canary-publish.outputs.proxyd != ''
runs-on
:
ubuntu
:
latest
runs-on
:
ubuntu
-
latest
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
...
@@ -329,26 +329,30 @@ jobs:
...
@@ -329,26 +329,30 @@ jobs:
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
-
name
:
Set env
-
name
:
Set build args
id
:
build_args
run
:
|
run
:
|
echo "GITDATE=$(date)" >> $GITHUB_ENV"
echo ::set-output name=GITDATE::"$(date +%d-%m-%Y)"
echo ::set-output name=GITVERSION::$(jq -r .version ./go/proxyd/package.json)
echo ::set-output name=GITCOMMIT::"$GITHUB_SHA"
-
name
:
Build and push
-
name
:
Build and push
uses
:
docker/build-push-action@v2
uses
:
docker/build-push-action@v2
with
:
with
:
context
:
.
/go/proxyd
context
:
.
file
:
./Dockerfile
file
:
./
go/proxyd/
Dockerfile
push
:
true
push
:
true
tags
:
ethereumoptimism/proxyd:${{ needs.canary-publish.outputs.proxyd }}
tags
:
ethereumoptimism/proxyd:${{ needs.canary-publish.outputs.proxyd }}
build-args
:
|
build-args
:
|
GITCOMMIT=$GITHUB_SHA
GITDATE=${{ steps.build_args.outputs.GITDATE }}
GITDATE=$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
if
:
needs.canary-publish.outputs.rpc-proxy != ''
if
:
needs.canary-publish.outputs.rpc-proxy != ''
runs-on
:
ubuntu
:
latest
runs-on
:
ubuntu
-
latest
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
...
...
go/proxyd/Dockerfile
View file @
c0574243
FROM
golang:1.17.2-alpine3.1
4
AS builder
FROM
golang:1.17.2-alpine3.1
3
AS builder
ARG
GITCOMMIT=docker
ARG
GITCOMMIT=docker
ARG
GITDATE=docker
ARG
GITDATE=docker
ARG
GITVERSION=docker
ARG
GITVERSION=docker
RUN
apk add make jq
&&
\
RUN
apk add make jq git
mkdir
-p
/app
WORKDIR
/app
WORKDIR
/app
COPY
go.mod /app
COPY
./go/proxyd /app
COPY
go.sum /app
COPY
cmd /app/cmd
COPY
*.go /app/
COPY
package.json /app
COPY
Makefile /app
RUN
make proxyd
GITCOMMIT
=
$GITCOMMIT
GITDATE
=
$GITDATE
RUN
make proxyd
FROM
alpine:3.14.2
FROM
alpine:3.14.2
EXPOSE
8080
EXPOSE
8080
VOLUME
/etc/proxyd
.toml
VOLUME
/etc/proxyd
COPY
--from=builder /app/bin/proxyd /bin/proxyd
COPY
--from=builder /app/bin/proxyd /bin/proxyd
CMD
["/bin/proxyd", "/etc/proxyd.toml"]
CMD
["/bin/proxyd", "/etc/proxyd
/proxyd
.toml"]
go/proxyd/Makefile
View file @
c0574243
GITCOMMIT
:=
$(
shell
git rev-parse HEAD
)
GITDATE
:=
$(
shell
git show
-s
--format
=
'%ct'
)
GITVERSION
:=
$(
shell
cat
package.json | jq .version
)
LDFLAGSSTRING
+=
-X
main.GitCommit
=
$(GITCOMMIT)
LDFLAGSSTRING
+=
-X
main.GitCommit
=
$(GITCOMMIT)
LDFLAGSSTRING
+=
-X
main.GitDate
=
$(GITDATE)
LDFLAGSSTRING
+=
-X
main.GitDate
=
$(GITDATE)
LDFLAGSSTRING
+=
-X
main.GitVersion
=
$(GITVERSION)
LDFLAGSSTRING
+=
-X
main.GitVersion
=
$(GITVERSION)
...
...
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