This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new 118ab6a76 ci(go): improve go bdd Dockerfile to leverage Docker layer
caching (#2862)
118ab6a76 is described below
commit 118ab6a76633f570e7edba354c1c9bd646a18e56
Author: Chengxi Luo <[email protected]>
AuthorDate: Wed Mar 4 02:54:23 2026 -0500
ci(go): improve go bdd Dockerfile to leverage Docker layer caching (#2862)
---
bdd/go/Dockerfile | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/bdd/go/Dockerfile b/bdd/go/Dockerfile
index 594bd5941..d7560b9bd 100644
--- a/bdd/go/Dockerfile
+++ b/bdd/go/Dockerfile
@@ -18,10 +18,23 @@
FROM golang:1.23.10-alpine
WORKDIR /app
-COPY . .
-# Install Ginkgo
-RUN go install github.com/onsi/ginkgo/v2/[email protected]
+# Copy only go.mod and go.sum first to leverage Docker layer caching
+COPY bdd/go/go.mod bdd/go/go.sum ./bdd/go/
+
+# Copy the go sdk code
+COPY foreign/go ./foreign/go
+
+# Install dependencies
+WORKDIR /app/bdd/go
+RUN go mod download
+
+# Return to project root
+WORKDIR /app
+
+# Copy the BDD test code and scenarios
+COPY bdd/go ./bdd/go
+COPY bdd/scenarios ./bdd/scenarios
# Change workdir to bdd/go
WORKDIR /app/bdd/go