Skip to content

Commit

Permalink
ci: upload gem from GitLab release stage
Browse files Browse the repository at this point in the history
  • Loading branch information
brettlangdon committed Jan 24, 2025
1 parent 8818eb8 commit 3c293b6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions .gitlab/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
release_ruby_gem:
stage: release
image: $DOCKER_REGISTRY/images/mirror/ruby:3.2.2
tags: ["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

0 comments on commit 3c293b6

Please sign in to comment.