From cfb04f57b57d54fcddc56886342a8fdf46c7d5b9 Mon Sep 17 00:00:00 2001 From: Rikiya HIKIMOCHI <34410077+hikimochi@users.noreply.github.com> Date: Mon, 9 Dec 2019 11:18:52 +0900 Subject: [PATCH] Fix gemfile (#53) --- .circleci/config.yml | 26 ++++++++++++++++++++++++-- Gemfile.lock | 6 +++--- bucky-core.gemspec | 2 +- 3 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dfdcbee..90d7b45 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: @@ -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: @@ -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}$/ diff --git a/Gemfile.lock b/Gemfile.lock index 334a4f6..8c7e750 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -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) diff --git a/bucky-core.gemspec b/bucky-core.gemspec index 27d1d9d..37d06cb 100644 --- a/bucky-core.gemspec +++ b/bucky-core.gemspec @@ -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