itamae-plugin-recipe-gitlab_runner 0.2.1 → 0.2.2

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: 7c73a5aa7f76b068deaff5b5eb10ebf20b27c198ff49f8429678b815f6f72d76
4
- data.tar.gz: '05139b9544085bc6fcbe4ba16c219e727de03eafe6a9daf92260994eaba89033'
3
+ metadata.gz: dfa598fbcf9353cab7dd2e00b5f33444c1d32eba706421e208b7d5f97c93e2ec
4
+ data.tar.gz: 852f923c2f4495c42a2f5e1944b233fd8e18b73a9924606329d7df3df88fabfe
5
5
  SHA512:
6
- metadata.gz: 1f3dbadb7d3a5a6b93ce91ee8b99138eb6f0d572eef3b9024b29a0b8a62a6c17b749de46e2226050a9aae5814cb922fb3e81a9bd1c26da643696f4781c2a599b
7
- data.tar.gz: b52f45ae73ffd223575fa955fc41fa4fb4f9549ba0d7403847a8a3421a9bff57ecd6c7a8d0a9218a0551b56ead72b6ce41b03dfeb9d360e4befffbe282e5e340
6
+ metadata.gz: 9a7c2318c3a085bcb7b9dea6daf39dc2149170bb76fbfb10e66751ae500d26daed40dbf32ae4bc3367685b36e418b065d0ced92853787b5d0dea1a5f957b33a5
7
+ data.tar.gz: 1505b2e8a6dfb2e177c30335777945bf5ca013764caacf42bf12e51832c409740affcb503167a34107b52def4c95c4ab9dc9c462d8159221514b0a689f5297a8
@@ -1,5 +1,11 @@
1
1
  ## master
2
- [full changelog](https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/compare/v0.2.1...master)
2
+ [full changelog](https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/compare/v0.2.2...master)
3
+
4
+ ## 0.2.2
5
+ [full changelog](https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/compare/v0.2.1...v0.2.2)
6
+
7
+ * Add `config` to `register_gitlab_runner`
8
+ * https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/pull/7
3
9
 
4
10
  ## 0.2.1
5
11
  [full changelog](https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/compare/v0.2.0...v0.2.1)
data/README.md CHANGED
@@ -52,6 +52,8 @@ Register a gitlab_runner
52
52
  * args for `gitlab-runner register`
53
53
  * `--non-interactive`, `--name` and `--description` are needless
54
54
  * c.f. https://docs.gitlab.com/runner/register/#one-line-registration-command
55
+ * `config` (`String`)
56
+ * config file (default: `/etc/gitlab-runner/config.toml`)
55
57
 
56
58
  e.g)
57
59
 
@@ -61,9 +63,10 @@ register_gitlab_runner "docker-runner" do
61
63
  "--url", "https://gitlab.com/",
62
64
  "--registration-token", "PROJECT_REGISTRATION_TOKEN",
63
65
  "--executor", "docker",
66
+ "--docker-image", "alpine:3",
64
67
  "--tag-list", "docker,aws",
65
68
  "--run-untagged",
66
- "--locked", "false",
69
+ "--locked=false",
67
70
  ]
68
71
  end
69
72
  ```
@@ -1,12 +1,13 @@
1
- define :register_gitlab_runner, options: [] do
1
+ define :register_gitlab_runner, options: [], config: "/etc/gitlab-runner/config.toml" do
2
2
  runner_name = params[:name]
3
+ config_file = params[:config]
3
4
 
4
5
  raise "name is required. (e.g. register_gitlab_runner 'your_runner_name')" unless runner_name
5
6
 
6
- register_args = ["--non-interactive", "--name", runner_name] + Array(params[:options])
7
+ register_args = ["--non-interactive", "--name", runner_name, "--config", config_file] + Array(params[:options])
7
8
  register_args.compact!
8
9
 
9
10
  execute "gitlab-runner register #{register_args.join(" ")}" do
10
- not_if "gitlab-runner list | grep '#{runner_name}'"
11
+ not_if "gitlab-runner list --config #{config_file} 2>&1 1>/dev/null | grep '#{runner_name}'"
11
12
  end
12
13
  end
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module GitlabRunner
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-gitlab_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-07 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae