Skip to content

Commit 3c229de

Browse files
authored
Fix otel docker image build when running on a tagged pipeline (#35390)
1 parent c6fef29 commit 3c229de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gitlab/integration_test/otel.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ docker_image_build_otel:
3737
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/metricstransformprocessor ${OTELCOL_VERSION}"
3838
script:
3939
- !reference [.login_to_docker_readonly]
40-
- docker build --build-arg AGENT_BRANCH=$CI_COMMIT_BRANCH --tag agent-byoc:latest -f /tmp/otel-ci/Dockerfile.agent-otel /tmp/otel-ci
40+
- docker build --build-arg AGENT_BRANCH=$CI_COMMIT_REF_NAME --tag agent-byoc:latest -f /tmp/otel-ci/Dockerfile.agent-otel /tmp/otel-ci
4141
- OT_AGENT_IMAGE_NAME=agent-byoc OT_AGENT_TAG=latest python3 /tmp/otel-ci/otel_agent_build_tests.py
4242
rules:
4343
- !reference [.except_mergequeue]

0 commit comments

Comments
 (0)