diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 58294686337..0869081637c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,10 +6,12 @@ stages: - macrobenchmarks - microbenchmarks - benchmarks + - release include: - remote: https://gitlab-templates.ddbuild.io/libdatadog/include/one-pipeline.yml - local: ".gitlab/benchmarks.yml" + - local: ".gitlab/release.yml" variables: RUBY_CUSTOM_IMAGE_BASE: $DOCKER_REGISTRY/ci/dd-trace-rb/custom_ruby diff --git a/.gitlab/release.yml b/.gitlab/release.yml new file mode 100644 index 00000000000..ec412da0ec5 --- /dev/null +++ b/.gitlab/release.yml @@ -0,0 +1,19 @@ +release_ruby_gem: + stage: release + image: $DOCKER_REGISTRY/images/mirror/ruby:3.2.2 + tag: ["arch:amd64"] + only: + # v2.10.0 + # v2.10.1 + # v2.10.0rc0 + # v2.10.0rc5 + - /^v[0-9]+\.[0-9]+\.[0-9]+(rc[0-9]+)?$/ + before_script: + - | + curl -L "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.2.3.zip" -o "awscliv2.zip" + echo "13ee8a87756aa61027bd87985d4da4dee7ac777a36410321b03621a943cf030e awscliv2.zip" | sha256sum --check + unzip awscliv2.zip + ./aws/install + - export GEM_HOST_API_KEY=$(aws ssm get-parameter --region us-east-1 --name "ci.${CI_PROJECT_NAME}.rubygems_datadog_token" --with-decryption --query "Parameter.Value" --out text) + script: + - gem publish pkg/datadog-*.gem