From 37da25b0241bd012a10b6685c7606cb07fe47d27 Mon Sep 17 00:00:00 2001 From: Baptiste Foy Date: Thu, 12 Dec 2024 10:12:27 +0100 Subject: [PATCH] feat(installer): Publish install scripts on installtesting.datad0g.com on success on main --- .gitlab/e2e_install_packages/include.yml | 1 + .gitlab/e2e_install_packages/installer.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .gitlab/e2e_install_packages/installer.yml diff --git a/.gitlab/e2e_install_packages/include.yml b/.gitlab/e2e_install_packages/include.yml index d710d975dc41a..cf50d55e12238 100644 --- a/.gitlab/e2e_install_packages/include.yml +++ b/.gitlab/e2e_install_packages/include.yml @@ -9,3 +9,4 @@ include: - .gitlab/e2e_install_packages/centos.yml - .gitlab/e2e_install_packages/suse.yml - .gitlab/e2e_install_packages/windows.yml + - .gitlab/e2e_install_packages/installer.yml diff --git a/.gitlab/e2e_install_packages/installer.yml b/.gitlab/e2e_install_packages/installer.yml new file mode 100644 index 0000000000000..56cd97616c145 --- /dev/null +++ b/.gitlab/e2e_install_packages/installer.yml @@ -0,0 +1,15 @@ +qa_installer_script_main: + image: registry.ddbuild.io/ci/datadog-agent-buildimages/gitlab_agent_deploy$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES + stage: e2e_install_packages + tags: ["arch:amd64"] + rules: + - !reference [.on_main] + # TODO: REMOVE ME AFTER TESTS + - if: '$CI_COMMIT_BRANCH == "baptiste.foy/FA/promote-scripts-on-main"' + when: on_success + needs: + - new-e2e-installer-script + before_script: + - ls $OMNIBUS_PACKAGE_DIR + script: + - $S3_CP_CMD --recursive --exclude "*" --include "install-*.sh" "$OMNIBUS_PACKAGE_DIR" "s3://${INSTALLER_TESTING_S3_BUCKET}/scripts/"