-
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.
- Loading branch information
Showing
167 changed files
with
5,406 additions
and
3,242 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
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 |
---|---|---|
|
@@ -25,33 +25,10 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20' | ||
|
||
- name: Run Gosec Security Scanner | ||
uses: securego/[email protected] | ||
with: | ||
args: ./... | ||
|
||
gosec-cosmos: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v4 | ||
uses: zeta-chain/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20' | ||
|
||
- name: Run Cosmos Gosec Security Scanner | ||
run: make lint-cosmos-gosec | ||
args: -exclude-generated -exclude-dir testutil ./... | ||
|
||
lint: | ||
runs-on: ubuntu-22.04 | ||
|
@@ -67,7 +44,7 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.22' | ||
|
||
- name: Run golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
|
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,5 +1,5 @@ | ||
# syntax=docker/dockerfile:1.7-labs | ||
FROM golang:1.20.14-bookworm AS base-build | ||
FROM golang:1.22.5-bookworm AS base-build | ||
|
||
ENV GOPATH /go | ||
ENV GOOS=linux | ||
|
@@ -22,10 +22,10 @@ COPY --exclude=*.sh --exclude=*.md --exclude=*.yml . . | |
RUN --mount=type=cache,target="/root/.cache/go-build" make install | ||
RUN --mount=type=cache,target="/root/.cache/go-build" make install-zetae2e | ||
|
||
FROM golang:1.20.14-bookworm AS cosmovisor-build | ||
FROM golang:1.22.5-bookworm AS cosmovisor-build | ||
RUN go install cosmossdk.io/tools/cosmovisor/cmd/[email protected] | ||
|
||
FROM golang:1.20.14-bookworm AS base-runtime | ||
FROM golang:1.22.5-bookworm AS base-runtime | ||
|
||
RUN apt update && \ | ||
apt install -yq jq yq curl tmux python3 openssh-server iputils-ping iproute2 bind9-host && \ | ||
|
@@ -59,13 +59,9 @@ FROM base-runtime AS latest-runtime | |
COPY --from=cosmovisor-build /go/bin/cosmovisor /usr/local/bin | ||
COPY --from=latest-build /go/bin/zetacored /go/bin/zetaclientd /go/bin/zetaclientd-supervisor /go/bin/zetae2e /usr/local/bin | ||
|
||
# optional old version build. This old build is used as the genesis version in the upgrade tests. | ||
# use --target latest-runtime to skip | ||
# | ||
# TODO: just download binaries from github release now that we're using glibc | ||
# we can't do this right now since we do not have a v16 release candidate | ||
# https://github.com/zeta-chain/node/issues/2179 | ||
FROM base-build as old-build | ||
# Optional old version build (from source). This old build is used as the genesis version in the upgrade tests. | ||
# Use --target latest-runtime to skip. | ||
FROM base-build as old-build-source | ||
|
||
ARG OLD_VERSION | ||
RUN git clone https://github.com/zeta-chain/node.git | ||
|
@@ -74,8 +70,22 @@ RUN cd node && git fetch | |
RUN cd node && git checkout ${OLD_VERSION} | ||
RUN cd node && make install | ||
|
||
FROM base-runtime AS old-runtime-source | ||
|
||
COPY --from=cosmovisor-build /go/bin/cosmovisor /usr/local/bin | ||
COPY --from=old-build-source /go/bin/zetacored /go/bin/zetaclientd /usr/local/bin | ||
COPY --from=latest-build /go/bin/zetaclientd-supervisor /usr/local/bin | ||
|
||
# Optional old version build (from binary). | ||
# Use --target latest-runtime to skip. | ||
FROM base-runtime AS old-runtime | ||
|
||
ARG OLD_VERSION | ||
ARG BUILDARCH | ||
|
||
COPY --from=cosmovisor-build /go/bin/cosmovisor /usr/local/bin | ||
COPY --from=old-build /go/bin/zetacored /go/bin/zetaclientd /usr/local/bin | ||
COPY --from=latest-build /go/bin/zetaclientd-supervisor /usr/local/bin | ||
COPY --from=latest-build /go/bin/zetaclientd-supervisor /usr/local/bin | ||
RUN curl -Lo /usr/local/bin/zetacored ${OLD_VERSION}/zetacored-linux-${BUILDARCH} && \ | ||
chmod 755 /usr/local/bin/zetacored && \ | ||
curl -Lo /usr/local/bin/zetaclientd ${OLD_VERSION}/zetaclientd-linux-${BUILDARCH} && \ | ||
chmod 755 /usr/local/bin/zetaclientd |
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.