Skip to content

Commit

Permalink
feat(installer): Publish install scripts on installtesting.datad0g.co…
Browse files Browse the repository at this point in the history
…m on success on main
  • Loading branch information
BaptisteFoy committed Dec 12, 2024
1 parent c96e647 commit 69dc8a9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ variables:
.if_main_branch: &if_main_branch
if: $CI_COMMIT_BRANCH == "main"

.if_not_main_branch: &if_not_main_branch
if: $CI_COMMIT_BRANCH != "main"

.if_release_branch: &if_release_branch
if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/

Expand Down Expand Up @@ -628,6 +631,10 @@ workflow:
variables:
FAST_TESTS: "true"

.only_main:
- <<: *if_not_main_branch
when: never

.except_main_or_release_branch:
- <<: *if_main_branch
when: never
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/JOBOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ deploy_packages* @DataDog/agent-delivery
deploy_staging* @DataDog/agent-delivery
publish_winget* @DataDog/windows-agent
powershell_script_deploy @DataDog/windows-agent
windows_bootstrapper_deploy @DataDog/windows-agent
windows_bootstrapper_deploy @DataDog/windows-agent
qa_*_oci @DataDog/agent-delivery
qa_installer_script @DataDog/agent-delivery
qa_installer_script* @DataDog/agent-delivery

# Deploy containers
deploy_containers* @Datadog/agent-delivery
Expand Down
1 change: 1 addition & 0 deletions .gitlab/e2e_install_packages/include.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 15 additions & 0 deletions .gitlab/e2e_install_packages/installer.yml
Original file line number Diff line number Diff line change
@@ -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 [.only_main] # Disable non-main branch. Must be first.
- !reference [.on_installer_or_e2e_changes]
- !reference [.manual]
needs:
- new-e2e-installer-script
- installer-install-scripts
before_script:
- ls $OMNIBUS_PACKAGE_DIR
script:
- $S3_CP_CMD --recursive --exclude "*" --include "install-*.sh" "$OMNIBUS_PACKAGE_DIR" "s3://${INSTALLER_TESTING_S3_BUCKET}/scripts/"

0 comments on commit 69dc8a9

Please sign in to comment.