Skip to content

Commit

Permalink
fix ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
yutianwu committed Apr 10, 2023
1 parent 1e62381 commit 7cc8a13
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/images/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ all: simd-env

simd-env: simd-rmi
docker build --tag cosmossdk/simd -f simd-env/Dockerfile \
$(shell git rev-parse --show-toplevel)
$(shell git rev-parse --show-toplevel) --build-arg GH_TOKEN="${GH_TOKEN}"

simd-dlv: simd-rmi
docker build --tag cosmossdk/simd -f simd-dlv/Dockerfile \
$(shell git rev-parse --show-toplevel)
$(shell git rev-parse --show-toplevel) --build-arg GH_TOKEN="${GH_TOKEN}"

simd-rmi:
docker rmi cosmossdk/simd 2>/dev/null; true
Expand Down
6 changes: 6 additions & 0 deletions contrib/images/simd-dlv/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM golang:1.20-alpine AS build

ARG GH_TOKEN=""

RUN apk add build-base git linux-headers libc-dev
RUN go install github.com/go-delve/delve/cmd/dlv@latest

Expand All @@ -15,6 +17,10 @@ COPY collections/go.mod collections/go.sum /work/collections/
COPY store/go.mod store/go.sum /work/store/
COPY log/go.mod log/go.sum /work/log/
COPY x/tx/go.mod x/tx/go.sum /work/x/tx/

RUN go env -w GOPRIVATE="github.com/bnb-chain/*"
RUN git config --global url."https://${GH_TOKEN}@github.com".insteadOf "https://github.com"

RUN go mod download

COPY ./ /work
Expand Down
6 changes: 6 additions & 0 deletions contrib/images/simd-env/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM golang:1.20-alpine AS build

ARG GH_TOKEN=""

RUN apk add build-base git linux-headers libc-dev

WORKDIR /work
Expand All @@ -14,6 +16,10 @@ COPY collections/go.mod collections/go.sum /work/collections/
COPY store/go.mod store/go.sum /work/store/
COPY log/go.mod log/go.sum /work/log/
COPY x/tx/go.mod x/tx/go.sum /work/x/tx/

RUN go env -w GOPRIVATE="github.com/bnb-chain/*"
RUN git config --global url."https://${GH_TOKEN}@github.com".insteadOf "https://github.com"

RUN go mod download

COPY ./ /work
Expand Down

0 comments on commit 7cc8a13

Please sign in to comment.