Skip to content

Commit

Permalink
chore: add version argument to dockerfile e2e-init-chain
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Sep 3, 2024
1 parent 997de7c commit 26a3fc9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/images/e2e-initialization/init.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
FROM golang:1.21 as build-env

ARG E2E_SCRIPT_NAME
# Version to build. Default is empty
ARG VERSION

# Copy All
WORKDIR /go/src/github.com/babylonlabs-io/babylon
COPY ./ /go/src/github.com/babylonlabs-io/babylon/

# If version is set, then checkout this version
RUN if [ -n "${VERSION}" ]; then \
git checkout -f ${VERSION}; \
fi

RUN LEDGER_ENABLED=false LINK_STATICALLY=false E2E_SCRIPT_NAME=${E2E_SCRIPT_NAME} make e2e-build-script

FROM debian:bookworm-slim AS wasm-link
Expand Down

0 comments on commit 26a3fc9

Please sign in to comment.