-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: upload gem from GitLab release stage
- Loading branch information
1 parent
8818eb8
commit 33f9a95
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
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 |