Skip to content

Commit

Permalink
Add Dockerfile and script for autopublication
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendi committed Mar 22, 2017
1 parent 69fa54c commit 7c9c3b6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM abakpress/ruby-app:2.3-latest

RUN git config --global user.name "Automated Release" \
&& git config --global user.email [email protected]

ADD . /usr/src/apress-gems

RUN cd /usr/src/apress-gems \
&& gem build -V apress-gems.gemspec \
&& gem install $(ls -t apress-gems*.gem | head -1)

ADD release-gem /usr/local/bin/
3 changes: 3 additions & 0 deletions release-gem
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash -e

apress-gem exist --quiet || apress-gem release --no-bump --no-pull

0 comments on commit 7c9c3b6

Please sign in to comment.