Skip to content

Commit

Permalink
OCI: provide path to config folder (#24911)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouquette authored and alexgallotta committed May 9, 2024
1 parent 37b8064 commit c3ff0fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitlab/packaging/oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@
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 ${OCI_PRODUCT} \
--os linux \
--arch ${ARCH} \
--archive --archive-path "${OUTPUT_DIR}/${OUTPUT_FILE}" \
${EXTRA_FLAGS} \
${INPUT_DIR}/${INSTALL_DIR}/
rm -f ${INPUT_FILE}
done
Expand Down

0 comments on commit c3ff0fd

Please sign in to comment.