Skip to content

Commit

Permalink
feat(dd): add git repo url as datadog env var build arg (IN-2249) (#324)
Browse files Browse the repository at this point in the history
Add git repo url as build arg env var to images for use by DataDog repo linking

## Related PRs
- voiceflow/general-runtime#1478
  • Loading branch information
theProf authored Feb 10, 2025
1 parent 3bfb073 commit b6f8c0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/track/update_track.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ if [[ $IMAGE_EXISTS == "false" || "$CIRCLE_BRANCH" == "master" || "$CIRCLE_BRANC
BUILD_ARGS+=( "${CACHE_TO_ARG[@]}" )
BUILD_ARGS+=( --builder "${BUILDER_NAME-}")

DD_TAGS_ARG+=(--build-arg DD_GIT_REPOSITORY_URL="${CIRCLE_REPOSITORY_URL}")

TAGS=(-t "$IMAGE_NAME")

if [[ -z "$IMAGE_TAG_OVERRIDE" ]]; then
Expand All @@ -145,6 +147,7 @@ if [[ $IMAGE_EXISTS == "false" || "$CIRCLE_BRANCH" == "master" || "$CIRCLE_BRANC
--build-arg build_BUILD_URL="${CIRCLE_BUILD_URL}" \
--build-arg build_GIT_SHA="${CIRCLE_SHA1}" \
--build-arg build_SEM_VER="${SEM_VER}" \
"${DD_TAGS_ARG[@]}" \
"${REGISTRY_ARG[@]}" \
"${PACKAGE_ARG[@]}" \
"${AWS_CREDENTIALS_ARG[@]}" \
Expand Down

0 comments on commit b6f8c0a

Please sign in to comment.