Skip to content

Commit d4dea36

Browse files
Fix version source when making e2e agent image (#3889)
* Fix version source when making e2e agent image * force snapshot version for e2e agent builds
1 parent 73a7879 commit d4dea36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ test-int-set: ## - Run integration tests without setup
336336
.PHONY: build-e2e-agent-image
337337
build-e2e-agent-image: docker-cover-e2e-binaries ## - Build a custom elastic-agent image with fleet-server binaries with coverage enabled injected
338338
@printf "${CMD_COLOR_ON} Creating test e2e agent image\n${CMD_COLOR_OFF}"
339-
GOARCH=amd64 ./dev-tools/e2e/build.sh
339+
FLEET_VERSION=${DEFAULT_VERSION}-SNAPSHOT GOARCH=amd64 ./dev-tools/e2e/build.sh # force fleet version to be equal to VERSION-SNAPSHOT
340340

341341
.PHONY: e2e-certs
342342
e2e-certs: ## - Use openssl to create a CA, encrypted private key, and signed fleet-server cert testing purposes

dev-tools/e2e/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ CUSTOM_IMAGE_TAG=${STACK_VERSION}-e2e-${COMMIT}-$(date +%s)
2727
docker build \
2828
-f $REPO_ROOT/dev-tools/e2e/Dockerfile \
2929
--build-arg ELASTIC_AGENT_IMAGE=$BASE_IMAGE \
30-
--build-arg STACK_VERSION=$STACK_VERSION \
30+
--build-arg STACK_VERSION=${FLEET_VERSION} \
3131
--build-arg VCS_REF_SHORT=${VCS_REF:0:6} \
3232
--platform linux/$GOARCH \
3333
-t ${CI_ELASTIC_AGENT_DOCKER_IMAGE}:${CUSTOM_IMAGE_TAG} \

0 commit comments

Comments
 (0)