Skip to content

Commit

Permalink
Fix gemfile (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
hikimochi authored and nk-ty committed Dec 9, 2019
1 parent 0939f13 commit cfb04f5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
26 changes: 24 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- run: bundle exec rubocop -f html --out report.html
- store_artifacts:
path: report.html
publish:
publish_to_rubygems:
docker:
- image: circleci/ruby:2.4.1
steps:
Expand All @@ -89,6 +89,22 @@ jobs:
- run:
name: Update vresion.rb and publish on RubyGems
command: bash .circleci/deploy_to_rubygems.sh
publish_to_docker_hub:
machine: true
environment:
DOCKER_REPO: lifullsetg/bucky-core
steps:
- checkout
- run:
name: Build image
command: |
docker build -t "$DOCKER_REPO":"${CIRCLE_TAG/v/}" .
- run:
name: Login and push image
command: |
docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_TOKEN"
docker push "$DOCKER_REPO":"${CIRCLE_TAG/v/}"
docker logout
workflows:
version: 2
test:
Expand All @@ -101,7 +117,13 @@ workflows:
- generate_cache_for_system_test
deploy:
jobs:
- publish:
- publish_to_rubygems:
filters:
tags:
only: /^v[0-9]{1,}(\.[0-9]{1,}){2}$/
branches:
ignore: /.*/
- publish_to_docker_hub:
filters:
tags:
only: /^v[0-9]{1,}(\.[0-9]{1,}){2}$/
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: .
specs:
bucky-core (0.9.19)
bucky-core (0.9.20)
addressable (~> 2.5)
color_echo (~> 3.1)
json (~> 2.1)
nokogiri (~> 1.10.4)
parallel (~> 1.11)
ruby-mysql (~> 2.9)
selenium-webdriver (~> 3.4)
selenium-webdriver (~> 3.142)
sequel (~> 4.48)
test-unit (~> 3.2)

Expand All @@ -34,7 +34,7 @@ GEM
json (2.1.0)
method_source (0.9.0)
mini_portile2 (2.4.0)
nokogiri (1.10.5)
nokogiri (1.10.7)
mini_portile2 (~> 2.4.0)
parallel (1.12.1)
parser (2.6.3.0)
Expand Down
2 changes: 1 addition & 1 deletion bucky-core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'nokogiri', '~> 1.10.4'
spec.add_runtime_dependency 'parallel', '~> 1.11'
spec.add_runtime_dependency 'ruby-mysql', '~> 2.9'
spec.add_runtime_dependency 'selenium-webdriver', '~> 3.4'
spec.add_runtime_dependency 'selenium-webdriver', '~> 3.142'
spec.add_runtime_dependency 'sequel', '~> 4.48'
spec.add_runtime_dependency 'test-unit', '~> 3.2'
end

0 comments on commit cfb04f5

Please sign in to comment.