Skip to content

Commit

Permalink
ci(repo,taiko-client): fix client build (#17040)
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx authored May 9, 2024
1 parent 65ff299 commit dbf4413
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/taiko-client-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Login to GAR
uses: docker/login-action@v2
Expand Down Expand Up @@ -67,6 +67,7 @@ jobs:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: packages/taiko-client/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down
12 changes: 9 additions & 3 deletions packages/taiko-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@ FROM golang:1.21-alpine as builder

RUN apk update && apk add --no-cache --update gcc musl-dev linux-headers git make build-base

WORKDIR /taiko-client
COPY . .
WORKDIR /build

COPY go.mod go.sum ./

COPY packages/taiko-client/ packages/taiko-client/

WORKDIR /build/packages/taiko-client

RUN --mount=type=cache,target=/root/.cache/go-build,sharing=locked \
make build

FROM alpine:latest

RUN apk add --no-cache ca-certificates libstdc++

COPY --from=builder /taiko-client/bin/taiko-client /usr/local/bin/
COPY --from=builder /build/packages/taiko-client/bin/taiko-client /usr/local/bin/

EXPOSE 6060

Expand Down
2 changes: 2 additions & 0 deletions packages/taiko-client/integration_test/l1_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export TAIKO_TOKEN=0x0000000000000000000000000000000000000000
export SHARED_ADDRESS_MANAGER=0x0000000000000000000000000000000000000000
export PROPOSER=0x0000000000000000000000000000000000000000
export PROPOSER_ONE=0x0000000000000000000000000000000000000000
export NUM_MIN_MAJORITY_GUARDIANS=7
export NUM_MIN_MINORITY_GUARDIANS=2

GUARDIAN_PROVERS_ADDRESSES_LIST=(
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
Expand Down

0 comments on commit dbf4413

Please sign in to comment.