Skip to content

Commit

Permalink
Adds --opt flag to gem push
Browse files Browse the repository at this point in the history
  • Loading branch information
zedtux committed Jun 15, 2022
1 parent 3d6456e commit 0283a2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ rspec:
# the `~/.gem` folder and stored your API key.
#
# Then use the following command:
# earthly +gem --GEM_CREDENTIALS="$(cat ~/.gem/credentials)"
# earthly +gem --GEM_CREDENTIALS="$(cat ~/.gem/credentials)" --RUBYGEMS_OTP=123456
gem:
FROM +dev

ARG GEM_CREDENTIALS
ARG RUBYGEMS_OTP

COPY .git/ /gem/
COPY CHANGELOG.md /gem/
Expand All @@ -85,6 +86,6 @@ gem:
&& echo "$GEM_CREDENTIALS" > ~/.gem/credentials \
&& cat ~/.gem/credentials \
&& chmod 600 ~/.gem/credentials \
&& gem push nobrainer-*.gem
&& gem push --otp $RUBYGEMS_OTP nobrainer-*.gem

SAVE ARTIFACT nobrainer-*.gem AS LOCAL nobrainer.gem

0 comments on commit 0283a2b

Please sign in to comment.