middleman-hashicorp 0.3.44 → 0.3.45

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9f431e25eaae0a8a16bc2888bac5252f69bb98e98c5a1cba3e3d877c0c44874
4
- data.tar.gz: d808713b6fa73200c9f95153f9c23ea85f94235dcf362246e6a00b91af248d7e
3
+ metadata.gz: b60a5def720bde54b9c51c5c941aafca3f93d1c04722723114dc02e39c3381ae
4
+ data.tar.gz: 9b19b2c25df2aeb24db8ec445280fa3fbd57e1e7116c8f140ba79cb9086569bb
5
5
  SHA512:
6
- metadata.gz: 523af19a5288edd414f9ee99af2382aebe47e11c1d5b1267ffc368a23ddbca55e28b510301c6f930c116b54ef75a4255530e23686e2d48d6c94c6f8c3c1c8305
7
- data.tar.gz: c0dc5125d083da48b5a4e707c3824982ba356c7074230a8f882d0916787ce770e01e01982846c1026427f9ffffa1034aaae16735b7e3c27b16891acf0e3e730f
6
+ metadata.gz: 1db1f8debe6ba275ea196174caa1650fc1f8d97988b544c4a5a917e999faedb96490b355f02b94758336769b6c024e649743ff787b5b34ef6d1f1da0cece6522
7
+ data.tar.gz: df5d1d9110e18ece8826fb92da805cc2228d60202f4d83c61538d145a2b96a9e47de6cb9aaa9eabb397f885d7a6c88b5047fd6b43ae382c2514f7129c6ba5478
@@ -0,0 +1,112 @@
1
+ version: 2.1
2
+
3
+ executors:
4
+ ruby:
5
+ docker:
6
+ # This should really use the new `cimg/ruby:2.7.4-node` image instead.
7
+ # However, the HashiCorp mirror is currently not configured to mirror
8
+ # `cimg` images.
9
+ # https://circleci.com/docs/2.0/circleci-images/#next-generation-convenience-images
10
+ - image: docker.mirror.hashicorp.services/circleci/ruby:2.7.4-node
11
+
12
+ commands:
13
+ bundle-dependencies:
14
+ description: Bundle Dependencies
15
+ parameters:
16
+ bundle-version:
17
+ type: string
18
+ gem-version:
19
+ type: string
20
+ steps:
21
+ - run:
22
+ name: Upgrade gem
23
+ command: sudo gem update --system '<< parameters.gem-version >>'
24
+ - run:
25
+ name: Upgrade bundler
26
+ command: |
27
+ gem install bundler -v '~> << parameters.bundle-version >>'
28
+ - run:
29
+ name: Bundle install
30
+ command: |
31
+ bundle '_<< parameters.bundle-version >>_' install --jobs 7 --retry=3 --path=vendor/bundle
32
+
33
+ jobs:
34
+ build:
35
+ executor:
36
+ name: ruby
37
+ working_directory: ~/data
38
+ steps:
39
+ - checkout
40
+ - restore_cache:
41
+ keys:
42
+ - gemfile-cache-{{ checksum "Gemfile.lock" }}
43
+ - bundle-dependencies:
44
+ bundle-version: '1.17.3'
45
+ gem-version: '3.1.2'
46
+ - save_cache:
47
+ key: gemfile-cache-{{ checksum "Gemfile.lock" }}
48
+ paths:
49
+ - ~/data/vendor/bundle
50
+ - run: bundle exec rake
51
+ - persist_to_workspace:
52
+ root: .
53
+ paths:
54
+ - vendor/bundle
55
+ gem-push:
56
+ executor:
57
+ name: ruby
58
+ working_directory: ~/data
59
+ steps:
60
+ - checkout
61
+ - attach_workspace:
62
+ at: ~/data
63
+ - bundle-dependencies:
64
+ bundle-version: '1.17.3'
65
+ gem-version: '3.1.2'
66
+ - run:
67
+ name: Setup RubyGems
68
+ command: bash .circleci/setup-rubygems.sh
69
+ - run:
70
+ name: Publish to RubyGems
71
+ command: bundle exec rake release
72
+ - run:
73
+ name: Cleanup
74
+ command: rm -rf /home/circleci/.gem/credentials
75
+ docker-push:
76
+ executor:
77
+ name: ruby
78
+ steps:
79
+ - checkout
80
+ - setup_remote_docker
81
+ - run:
82
+ name: Upload docker image
83
+ command: |
84
+ docker login -u "${DOCKERHUB_USERNAME}" -p "${DOCKERHUB_PASSWORD}"
85
+ make docker
86
+ make docker-push
87
+
88
+ workflows:
89
+ middleman-hashicorp:
90
+ jobs:
91
+ - build:
92
+ filters:
93
+ tags:
94
+ only: /^v\d+\.\d+\.\d+$/
95
+ - gem-push:
96
+ context: middleman-hashicorp
97
+ requires:
98
+ - build
99
+ filters:
100
+ tags:
101
+ only: /^v\d+\.\d+\.\d+$/
102
+ branches:
103
+ ignore: /.*/
104
+ - docker-push:
105
+ context: middleman-hashicorp
106
+ requires:
107
+ - build
108
+ filters:
109
+ tags:
110
+ only: /^v\d+\.\d+\.\d+$/
111
+ branches:
112
+ ignore: /.*/
@@ -0,0 +1,3 @@
1
+ mkdir -p ~/.gem
2
+ echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
3
+ chmod 0600 /home/circleci/.gem/credentials
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- middleman-hashicorp (0.3.44)
4
+ middleman-hashicorp (0.3.45)
5
5
  bootstrap-sass (~> 3.3)
6
6
  builder (~> 3.2)
7
7
  middleman (~> 3.4)
data/docker/Dockerfile CHANGED
@@ -1,22 +1,21 @@
1
- FROM ruby:2.3-alpine
2
- MAINTAINER Seth Vargo <seth@hashicorp.com>
1
+ FROM docker.mirror.hashicorp.services/ruby:2.7.4-alpine
3
2
 
4
3
  ARG GEM_VERSION
5
4
 
6
5
  # Install packages
7
- RUN apk add --no-cache bash build-base curl jq nodejs python py-setuptools wget git openssh-client
6
+ RUN apk add --no-cache bash build-base ca-certificates curl jq nodejs python3 py3-setuptools wget git openssh-client
8
7
 
9
8
  # Install s3cmd
10
9
  RUN cd /tmp && \
11
- wget https://github.com/s3tools/s3cmd/releases/download/v1.6.1/s3cmd-1.6.1.tar.gz && \
12
- tar -xzvf s3cmd-1.6.1.tar.gz && \
13
- cd s3cmd-1.6.1 && \
14
- python setup.py install && \
10
+ curl -L -O https://github.com/s3tools/s3cmd/releases/download/v2.2.0/s3cmd-2.2.0.tar.gz && \
11
+ tar -xzvf s3cmd-2.2.0.tar.gz && \
12
+ cd s3cmd-2.2.0 && \
13
+ python3 setup.py install && \
15
14
  cd .. && \
16
- rm -rf s3cmd-1.6.1*
15
+ rm -rf s3cmd-2.2.0*
17
16
 
18
17
  # Upgrade bundler
19
- RUN gem install bundler -v '~> 1.13' --no-document && \
18
+ RUN gem install bundler -v '~> 1.17' --no-document && \
20
19
  gem cleanup
21
20
 
22
21
  # Install the bundle
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module HashiCorp
3
- VERSION = "0.3.44"
3
+ VERSION = "0.3.45"
4
4
  end
5
5
  end
@@ -6,8 +6,7 @@ require 'middleman-hashicorp/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'middleman-hashicorp'
8
8
  spec.version = Middleman::HashiCorp::VERSION
9
- spec.authors = ['Seth Vargo']
10
- spec.email = ['sethvargo@gmail.com']
9
+ spec.authors = ['HashiCorp, Inc.']
11
10
  spec.summary = 'A series of helpers for consistency among HashiCorp\'s middleman sites'
12
11
  spec.description = spec.summary
13
12
  spec.homepage = 'https://github.com/hashicorp/middleman-hashicorp'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-hashicorp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.44
4
+ version: 0.3.45
5
5
  platform: ruby
6
6
  authors:
7
- - Seth Vargo
7
+ - HashiCorp, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2021-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman
@@ -151,15 +151,15 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '11.3'
153
153
  description: A series of helpers for consistency among HashiCorp's middleman sites
154
- email:
155
- - sethvargo@gmail.com
154
+ email:
156
155
  executables: []
157
156
  extensions: []
158
157
  extra_rdoc_files: []
159
158
  files:
159
+ - ".circleci/config.yml"
160
+ - ".circleci/setup-rubygems.sh"
160
161
  - ".dockerignore"
161
162
  - ".gitignore"
162
- - ".travis.yml"
163
163
  - Gemfile
164
164
  - Gemfile.lock
165
165
  - LICENSE
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.0.3
242
+ rubygems_version: 3.1.2
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: A series of helpers for consistency among HashiCorp's middleman sites
data/.travis.yml DELETED
@@ -1,17 +0,0 @@
1
- dist: trusty
2
- sudo: false
3
-
4
- language: ruby
5
- cache: bundler
6
-
7
- rvm:
8
- - 2.3.4
9
-
10
- branches:
11
- only:
12
- - master
13
-
14
- before_install:
15
- - "gem install bundler -v '~> 1.13'"
16
-
17
- bundler_args: --jobs 7