Skip to content

Commit

Permalink
setting up kubernetes secret for rubygems credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
apolloakora committed Jan 26, 2020
1 parent 8787519 commit f1a941b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ pipeline
sh 'ls -lah $HOME/gitsshkey'
sh 'cat $HOME/gitsshconfig/config'
sh 'mkdir -p $HOME/.ssh && cp $HOME/gitsshconfig/config $HOME/.ssh/config'
sh 'mkdir -p $HOME/.gem && cp $HOME/gemcredentials/credentials $HOME/.gem/credentials'
sh 'git config --global user.email [email protected]'
sh 'git config --global user.name "Apollo Akora"'
sh 'ssh -i $HOME/gitsshkey/safedb.code.private.key.pem -vT [email protected] || true'
Expand Down
2 changes: 1 addition & 1 deletion lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module SafeDb
VERSION = "0.10.10"
VERSION = "0.10.11"
end
5 changes: 5 additions & 0 deletions pod-image-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ spec:
mountPath: /root/gitsshconfig
- name: gitsshkey
mountPath: /root/gitsshkey
- name: gemcreds
mountPath: /root/gemcredentials
command:
- cat
tty: true
Expand All @@ -29,3 +31,6 @@ spec:
secret:
secretName: safegitsshkey
defaultMode: 256
- name: gemcreds
secret:
secretName: saferubygemscreds

0 comments on commit f1a941b

Please sign in to comment.