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 coignetp committed May 28, 2024
1 parent 1903bc0 commit b6af3b6
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 b6af3b6

Please sign in to comment.