Skip to content

Commit

Permalink
packaging: oci: provide INSTALL_DIR
Browse files Browse the repository at this point in the history
This value is needed to package the content of the install dir as the
root of the package. Not providing it will cause the package to contain
the full path (/opt/datadog-packages/datadog-agent/foo instead of /foo)
  • Loading branch information
chouquette committed Jun 10, 2024
1 parent 7e73bd9 commit 93a5cca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab/packaging/oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ packaging_oci:
- $S3_CP_CMD merged.tar $S3_ARTIFACTS_URI/datadog-agent_7_oci.tar
before_script:
- source /root/.bashrc
- export PACKAGE_VERSION=$(inv agent.version --url-safe --major-version 7)-1
- export INSTALL_DIR=/opt/datadog-packages/${OCI_PRODUCT}/${PACKAGE_VERSION}
artifacts:
paths:
- ${OMNIBUS_PACKAGE_DIR}
Expand Down

0 comments on commit 93a5cca

Please sign in to comment.