From e8a90f3b7ae054adb0c5fd936af1961422548338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Mon, 22 Apr 2024 13:55:39 +0200 Subject: [PATCH] OCI: provide path to config folder --- .gitlab/packaging/oci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab/packaging/oci.yml b/.gitlab/packaging/oci.yml index fe1ae91ab7969c..f3ca9c996bdbb0 100644 --- a/.gitlab/packaging/oci.yml +++ b/.gitlab/packaging/oci.yml @@ -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