diff --git a/.drone.yml b/.drone.yml index 155717f..01aaf38 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,6 @@ 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 @@ -14,12 +13,8 @@ build: 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 @@ -29,5 +24,7 @@ build: when: event: push branch: master + volumes: + - /home/data/drone/rubygems:/root/.gem commands: - - release-gem + - release-gem --public diff --git a/apress-api.gemspec b/apress-api.gemspec index 8a66f85..0c23d41 100644 --- a/apress-api.gemspec +++ b/apress-api.gemspec @@ -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)/}) diff --git a/dip.yml b/dip.yml index a8dbf8d..74727ea 100644 --- a/dip.yml +++ b/dip.yml @@ -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 diff --git a/docker-compose.drone.yml b/docker-compose.drone.yml index 91659dc..1dc07bb 100644 --- a/docker-compose.drone.yml +++ b/docker-compose.drone.yml @@ -5,10 +5,3 @@ services: volumes: - .:/app - /bundle:/bundle - - ssh-data:/ssh:ro - - -volumes: - ssh-data: - external: - name: ssh_data diff --git a/lib/apress/api/version.rb b/lib/apress/api/version.rb index f624523..cb7e843 100644 --- a/lib/apress/api/version.rb +++ b/lib/apress/api/version.rb @@ -1,5 +1,5 @@ module Apress module Api - VERSION = '1.21.0'.freeze + VERSION = '1.22.0'.freeze end end