-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/chain-params-migration
- Loading branch information
Showing
51 changed files
with
4,216 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: "Pull Request Labeler" | ||
on: | ||
pull_request: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.19-alpine | ||
FROM golang:1.20-alpine3.18 | ||
|
||
ENV GOPATH /go | ||
ENV GOOS=linux | ||
|
@@ -9,51 +9,44 @@ ARG old_version | |
RUN apk --no-cache add git make build-base jq openssh libusb-dev linux-headers bash curl tmux | ||
RUN ssh-keygen -b 2048 -t rsa -f /root/.ssh/localtest.pem -q -N "" | ||
|
||
# Build cosmovisor | ||
RUN go install cosmossdk.io/tools/cosmovisor/cmd/[email protected] | ||
|
||
WORKDIR /go/delivery/zeta-node | ||
|
||
RUN mkdir -p $GOPATH/bin/old | ||
RUN mkdir -p $GOPATH/bin/new | ||
|
||
ENV NEW_VERSION=v42.0.0 | ||
ENV NEW_VERSION=v12.0.0 | ||
|
||
# Build new release from the current source | ||
COPY go.mod /go/delivery/zeta-node/ | ||
COPY go.sum /go/delivery/zeta-node/ | ||
RUN cd /go/delivery/zeta-node/ && go mod download | ||
COPY . /go/delivery/zeta-node/ | ||
RUN cd /go/delivery/zeta-node/ && make install | ||
RUN cd /go/delivery/zeta-node/ && make install-smoketest | ||
RUN cd /go/delivery/zeta-node/ && make install-zetae2e | ||
RUN cp $GOPATH/bin/zetacored $GOPATH/bin/new/ | ||
RUN cp $GOPATH/bin/zetaclientd $GOPATH/bin/new/ | ||
RUN cp $GOPATH/bin/smoketest $GOPATH/bin/new/ | ||
|
||
# Checkout and build old binary | ||
RUN git clone https://github.com/zeta-chain/node.git | ||
RUN cd node && git fetch | ||
|
||
RUN cd node && git checkout ${old_version} | ||
RUN cd node && make install | ||
RUN cd node && make install-smoketest | ||
RUN cp $GOPATH/bin/zetacored $GOPATH/bin/old/ | ||
RUN cp $GOPATH/bin/zetaclientd $GOPATH/bin/old/ | ||
RUN cp $GOPATH/bin/smoketest $GOPATH/bin/old/ | ||
|
||
RUN git clone https://github.com/zeta-chain/cosmos-sdk.git | ||
RUN cd cosmos-sdk && git checkout zetavisor-v0.1.5 | ||
RUN cd cosmos-sdk/cosmovisor && make zetavisor | ||
# | ||
#FROM golang:1.19-alpine | ||
|
||
#RUN apk --no-cache add openssh jq tmux vim curl bash | ||
RUN ssh-keygen -A | ||
WORKDIR /root | ||
|
||
RUN cp /root/.ssh/localtest.pem.pub /root/.ssh/authorized_keys | ||
|
||
RUN cp /go/bin/zetaclientd /usr/local/bin | ||
RUN cp /go/bin/zetacored /usr/local/bin | ||
RUN cp /go/bin/smoketest /usr/local/bin | ||
RUN cp /go/bin/zetavisor /usr/local/bin | ||
RUN cp /go/bin/zetae2e /usr/local/bin | ||
RUN cp /go/bin/cosmovisor /usr/local/bin | ||
|
||
COPY contrib/localnet/scripts /root | ||
COPY contrib/localnet/preparams /root/preparams | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.