Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
92b5995a
Commit
92b5995a
authored
Apr 28, 2021
by
Steve Abrams
Committed by
Nick Gaskill
Apr 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing content to RubyGems doc
parent
13b260da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
doc/user/packages/rubygems_registry/index.md
doc/user/packages/rubygems_registry/index.md
+10
-1
No files found.
doc/user/packages/rubygems_registry/index.md
View file @
92b5995a
...
@@ -80,10 +80,19 @@ you can use `CI_JOB_TOKEN` instead of a personal access token or deploy token.
...
@@ -80,10 +80,19 @@ you can use `CI_JOB_TOKEN` instead of a personal access token or deploy token.
For example:
For example:
```
yaml
```
yaml
image: ruby:latest
# assuming a my_gem.gemspec file is present in the repository with the version currently set to 0.0.1
image: ruby
run:
run:
before_script:
-
mkdir ~/.gem
-
echo "---" > ~/.gem/credentials
-
|
echo "https://gitlab.example.com/api/v4/projects/${CI_PROJECT_ID}/packages/rubygems: '${CI_JOB_TOKEN}'" >> ~/.gem/credentials
-
chmod 0600 ~/.gem/credentials # rubygems requires 0600 permissions on the credentials file
script:
script:
-
gem build my_gem
-
gem push my_gem-0.0.1.gem --host https://gitlab.example.com/api/v4/projects/${CI_PROJECT_ID}/packages/rubygems
```
```
You can also use `CI_JOB_TOKEN` in a `~/.gem/credentials` file that you check in to
You can also use `CI_JOB_TOKEN` in a `~/.gem/credentials` file that you check in to
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment