Skip to content

Commit 42a22da

Browse files
authored
Allow for setting non-default build tags. (#135)
1 parent b518f83 commit 42a22da

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/build_binary_and_layer_dockerized.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,16 @@ fi
2121

2222
if [ -z "$CLOUD_RUN" ]; then
2323
CMD_PATH="cmd/serverless"
24-
BUILD_TAGS="serverless otlp"
2524
else
2625
CMD_PATH="cmd/serverless-init"
27-
BUILD_TAGS="serverless"
26+
fi
27+
28+
if [ -z "$BUILD_TAGS" ]; then
29+
if [ -z "$CLOUD_RUN" ]; then
30+
BUILD_TAGS="serverless otlp"
31+
else
32+
BUILD_TAGS="serverless"
33+
fi
2834
fi
2935

3036
AGENT_PATH="../datadog-agent"
@@ -59,10 +65,6 @@ if [ "$RACE_DETECTION_ENABLED" = "true" ]; then
5965
BUILD_FILE=Dockerfile.race.build
6066
fi
6167

62-
if [ -z "$BUILD_TAGS" ]; then
63-
BUILD_TAGS="serverless"
64-
fi
65-
6668
function docker_build_zip {
6769
arch=$1
6870
suffix=$2

0 commit comments

Comments
 (0)