Skip to content

Commit

Permalink
OCI: provide path to config folder (#24911) (#26024)
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo Beauzée-Luyssen <[email protected]>
  • Loading branch information
coignetp and chouquette authored May 29, 2024
1 parent 1903bc0 commit 1247799
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitlab/packaging/oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ packaging_oci:
echo "Extracting to temporary input dir $INPUT_FILE -> $INPUT_DIR"
tar xJf ${INPUT_FILE} -C ${INPUT_DIR}
echo "Creating OCI layer -> ${OUTPUT_DIR}/${OUTPUT_FILE}"
if [ "${OCI_PRODUCT}" = "datadog-agent" ]; then
EXTRA_FLAGS="--configs ${INPUT_DIR}/etc/datadog-agent"
fi
./datadog-package create \
--version ${PACKAGE_VERSION} \
--package datadog-agent \
--os linux \
--arch ${ARCH} \
--archive --archive-path "${OUTPUT_DIR}/${OUTPUT_FILE}" \
${INPUT_DIR}/opt/datadog-packages/datadog-agent/${SIMPLE_VERSION}*/
${EXTRA_FLAGS} \
${INPUT_DIR}/${INSTALL_DIR}/
rm -f ${INPUT_FILE}
done
- echo "Aggregating all layers into one package -> ${MERGED_FILE}"
Expand Down

0 comments on commit 1247799

Please sign in to comment.