Skip to content

Commit

Permalink
extract version from version file for use in host_inject
Browse files Browse the repository at this point in the history
  • Loading branch information
randomanderson committed Jul 18, 2024
1 parent abaaf86 commit 247c01f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .gitlab/prepare-oci-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ cp ../lib-injection/host_inject.rb sources
# Kubernetes injection expects a different path
cp sources/host_inject.rb sources/auto_inject.rb

sed -i "s#PATH_PLACEHOLDER#/opt/datadog-packages/datadog-apm-library-ruby/${RUBY_PACKAGE_VERSION}#g" sources/host_inject.rb
sed -i "s#PATH_PLACEHOLDER#/datadog-lib#g" sources/auto_inject.rb

cp -r ../tmp/${ARCH}/* sources

cp ../tmp/version.txt sources/version

RUBY_PACKAGE_VERSION=$(<sources/version)

sed -i "s#PATH_PLACEHOLDER#/opt/datadog-packages/datadog-apm-library-ruby/${RUBY_PACKAGE_VERSION}#g" sources/host_inject.rb
sed -i "s#PATH_PLACEHOLDER#/datadog-lib#g" sources/auto_inject.rb

0 comments on commit 247c01f

Please sign in to comment.