Skip to content

Commit

Permalink
chore: Add automatic publication
Browse files Browse the repository at this point in the history
  • Loading branch information
Napolskih committed Aug 28, 2018
1 parent ce83eba commit 7bb90fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 18 deletions.
11 changes: 4 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,15 @@ build:
volumes:
- /home/data/drone/images:/images
- /home/data/drone/gems:/bundle
- /home/data/drone/key_cache:/ssh_keys
environment:
- COMPOSE_FILE_EXT=drone
- RUBY_IMAGE_TAG=2.2-latest
- POSTGRES_IMAGE_TAG=9.3-latest
commands:
- wrapdocker docker -v

- fetch-images
--image whilp/ssh-agent
--image abakpress/ruby-app:$RUBY_IMAGE_TAG
--image abakpress/postgres-db:$POSTGRES_IMAGE_TAG
- fetch-images --image abakpress/ruby-app:$RUBY_IMAGE_TAG

- dip ssh add -T -v /ssh_keys -k /ssh_keys/id_rsa
- dip provision
- dip rspec

Expand All @@ -29,5 +24,7 @@ build:
when:
event: push
branch: master
volumes:
- /home/data/drone/rubygems:/root/.gem
commands:
- release-gem
- release-gem --public
2 changes: 0 additions & 2 deletions apress-api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/abak-press/apress-api"
spec.license = "MIT"

spec.metadata["allowed_push_host"] = "https://gems.railsc.ru"

spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
Expand Down
1 change: 0 additions & 1 deletion dip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ interaction:

provision:
- docker volume create --name bundler_data
- dip bundle config --local https://gems.railsc.ru/ ${APRESS_GEMS_CREDENTIALS}
- dip clean
- dip bundle install
- dip appraisal install
7 changes: 0 additions & 7 deletions docker-compose.drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,3 @@ services:
volumes:
- .:/app
- /bundle:/bundle
- ssh-data:/ssh:ro


volumes:
ssh-data:
external:
name: ssh_data
2 changes: 1 addition & 1 deletion lib/apress/api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Apress
module Api
VERSION = '1.21.0'.freeze
VERSION = '1.22.0'.freeze
end
end

0 comments on commit 7bb90fa

Please sign in to comment.