Commit 5645c355 authored by Joshua Gutow's avatar Joshua Gutow Committed by GitHub

Version binaries (#4276)

* Copy .git during Docker build

This ensure that the git metadata is available to make when it is
building the binaries.

* Prompt to update version inside op binaries

This is easier to do than writing a script to update the individual
versions, but should be enough to remind the developer cutting
the release to do the updates.
parent 18d1ce3f
...@@ -9,6 +9,7 @@ COPY ./op-node /app/op-node ...@@ -9,6 +9,7 @@ COPY ./op-node /app/op-node
COPY ./op-proposer /app/op-proposer COPY ./op-proposer /app/op-proposer
COPY ./op-service /app/op-service COPY ./op-service /app/op-service
COPY ./op-batcher /app/op-batcher COPY ./op-batcher /app/op-batcher
COPY ./.git /app/.git
WORKDIR /app/op-batcher WORKDIR /app/op-batcher
......
...@@ -6,6 +6,7 @@ COPY ./op-chain-ops/docker.go.work /app/go.work ...@@ -6,6 +6,7 @@ COPY ./op-chain-ops/docker.go.work /app/go.work
COPY ./op-chain-ops /app/op-chain-ops COPY ./op-chain-ops /app/op-chain-ops
COPY ./op-bindings /app/op-bindings COPY ./op-bindings /app/op-bindings
COPY ./op-node /app/op-node COPY ./op-node /app/op-node
COPY ./.git /app/.git
WORKDIR /app/op-chain-ops WORKDIR /app/op-chain-ops
......
...@@ -8,6 +8,7 @@ COPY ./op-bindings /app/op-bindings ...@@ -8,6 +8,7 @@ COPY ./op-bindings /app/op-bindings
COPY ./op-node /app/op-node COPY ./op-node /app/op-node
COPY ./op-chain-ops /app/op-chain-ops COPY ./op-chain-ops /app/op-chain-ops
COPY ./op-service /app/op-service COPY ./op-service /app/op-service
COPY ./.git /app/.git
WORKDIR /app/op-node WORKDIR /app/op-node
......
...@@ -8,6 +8,7 @@ COPY ./op-bindings /app/op-bindings ...@@ -8,6 +8,7 @@ COPY ./op-bindings /app/op-bindings
COPY ./op-node /app/op-node COPY ./op-node /app/op-node
COPY ./op-proposer /app/op-proposer COPY ./op-proposer /app/op-proposer
COPY ./op-service /app/op-service COPY ./op-service /app/op-service
COPY ./.git /app/.git
WORKDIR /app/op-proposer WORKDIR /app/op-proposer
......
...@@ -36,6 +36,9 @@ go get github.com/ethereum-optimism/optimism/op-service@$VERSION ...@@ -36,6 +36,9 @@ go get github.com/ethereum-optimism/optimism/op-service@$VERSION
go get github.com/ethereum-optimism/optimism/op-chain-ops@$VERSION go get github.com/ethereum-optimism/optimism/op-chain-ops@$VERSION
go mod tidy go mod tidy
echo Please update the version to ${VERSION} in op-node/version/version.go
read -p "Press [Enter] key to continue"
git add . git add .
git commit -am 'chore: Upgrade op-node dependencies' git commit -am 'chore: Upgrade op-node dependencies'
git push $BEDROCK_TAGS_REMOTE git push $BEDROCK_TAGS_REMOTE
...@@ -48,6 +51,9 @@ go get github.com/ethereum-optimism/optimism/op-service@$VERSION ...@@ -48,6 +51,9 @@ go get github.com/ethereum-optimism/optimism/op-service@$VERSION
go get github.com/ethereum-optimism/optimism/op-node@$VERSION go get github.com/ethereum-optimism/optimism/op-node@$VERSION
go mod tidy go mod tidy
echo Please update the version to ${VERSION} in op-proposer/cmd/main.go
read -p "Press [Enter] key to continue"
git add . git add .
git commit -am 'chore: Upgrade op-proposer dependencies' git commit -am 'chore: Upgrade op-proposer dependencies'
git push $BEDROCK_TAGS_REMOTE git push $BEDROCK_TAGS_REMOTE
...@@ -61,6 +67,9 @@ go get github.com/ethereum-optimism/optimism/op-node@$VERSION ...@@ -61,6 +67,9 @@ go get github.com/ethereum-optimism/optimism/op-node@$VERSION
go get github.com/ethereum-optimism/optimism/op-proposer@$VERSION go get github.com/ethereum-optimism/optimism/op-proposer@$VERSION
go mod tidy go mod tidy
echo Please update the version to ${VERSION} in op-batcher/cmd/main.go
read -p "Press [Enter] key to continue"
git add . git add .
git commit -am 'chore: Upgrade op-batcher dependencies' git commit -am 'chore: Upgrade op-batcher dependencies'
git push $BEDROCK_TAGS_REMOTE git push $BEDROCK_TAGS_REMOTE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment