From 5d86515f1fbf9841fb7f7c18d635a9556ca9ffa0 Mon Sep 17 00:00:00 2001 From: Laplie Anderson Date: Fri, 26 Jul 2024 09:45:32 -0400 Subject: [PATCH] Pass commit SHAs to rel env deploy --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0010ec063b1..ad8e834385d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,7 @@ include: variables: RUBY_CUSTOM_IMAGE_BASE: $DOCKER_REGISTRY/ci/dd-trace-rb/custom_ruby REPO_LANG: ruby # ruby is used rather that "rb" + BUILD_JOB_NAME: save_versions default: tags: ["runner:main", "size:large"] @@ -122,3 +123,19 @@ onboarding_tests_k8s_injection: parallel: matrix: - WEBLOG_VARIANT: [dd-lib-ruby-init-test-rails, dd-lib-ruby-init-test-rails-explicit,dd-lib-ruby-init-test-rails-gemsrb] + +save_versions: + image: $DOCKER_REGISTRY/images/mirror/ruby:3.2.2 + stage: package + needs: [] + script: + - git fetch --all + - echo COMMIT_SHA_1X=$(git rev-parse origin/1.x-stable) >> upstream.env + - echo COMMIT_SHA_2X=$(git rev-parse origin/master) >> upstream.env + artifacts: + paths: + - upstream.env + +deploy_to_reliability_env: + needs: + - save_versions