itamae-plugin-recipe-gitlab_runner 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +12 -0
- data/.github/workflows/release_gem.yml +41 -0
- data/.github/workflows/test.yml +76 -0
- data/CHANGELOG.md +13 -1
- data/README.md +1 -1
- data/itamae-plugin-recipe-gitlab_runner.gemspec +7 -2
- data/lib/itamae/plugin/recipe/gitlab_runner/version.rb +1 -1
- metadata +13 -14
- data/.travis.yml +0 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d266d1a47f3fbbd54bb52e2590b96c7ab724db60ae3081bda9357fdc8d81e91a
|
|
4
|
+
data.tar.gz: 3a2fd0678fbaa5a3ed92304a9ece027d95cdcfa659cadfd4b580ff5f939b1c64
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af51d3d6901fb56923b0e40b7a2b2482e6358c419d8e77c354f2fc94d5314eec9c56aba35bb46b70a7d468d1900ec032c8aab10eb8126a5761f8be3131832789
|
|
7
|
+
data.tar.gz: c6323ec55b79aea35079a8de938aa3f91fe5fa930902b2ecb5d17b4de30199efdfdde50c73a2668653b463315f981c2ee775c261a09c454bf1821a09aac98b81
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
2
|
+
version: 2
|
|
3
|
+
|
|
4
|
+
updates:
|
|
5
|
+
- package-ecosystem: github-actions
|
|
6
|
+
directory: /
|
|
7
|
+
schedule:
|
|
8
|
+
interval: weekly
|
|
9
|
+
cooldown:
|
|
10
|
+
default-days: 7
|
|
11
|
+
assignees:
|
|
12
|
+
- sue445
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
if: github.repository == 'sue445/itamae-plugin-recipe-gitlab_runner'
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
environment:
|
|
12
|
+
name: rubygems.org
|
|
13
|
+
url: https://rubygems.org/gems/itamae-plugin-recipe-gitlab_runner
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Harden Runner
|
|
21
|
+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
|
22
|
+
with:
|
|
23
|
+
egress-policy: audit
|
|
24
|
+
|
|
25
|
+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
26
|
+
|
|
27
|
+
- name: Set up Ruby
|
|
28
|
+
uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
|
|
29
|
+
with:
|
|
30
|
+
bundler-cache: true
|
|
31
|
+
ruby-version: ruby
|
|
32
|
+
|
|
33
|
+
- name: Publish to RubyGems
|
|
34
|
+
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
|
|
35
|
+
|
|
36
|
+
- name: Create GitHub release
|
|
37
|
+
run: |
|
|
38
|
+
tag_name="$(git describe --tags --abbrev=0)"
|
|
39
|
+
gh release create "${tag_name}" --verify-tag --generate-notes
|
|
40
|
+
env:
|
|
41
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
types:
|
|
9
|
+
- opened
|
|
10
|
+
- synchronize
|
|
11
|
+
- reopened
|
|
12
|
+
schedule:
|
|
13
|
+
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
test:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
|
|
19
|
+
strategy:
|
|
20
|
+
fail-fast: false
|
|
21
|
+
|
|
22
|
+
matrix:
|
|
23
|
+
ruby:
|
|
24
|
+
- "2.3"
|
|
25
|
+
image:
|
|
26
|
+
- debian:bullseye
|
|
27
|
+
- debian:bookworm
|
|
28
|
+
- amazonlinux:2
|
|
29
|
+
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
32
|
+
|
|
33
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
34
|
+
with:
|
|
35
|
+
ruby-version: ${{ matrix.ruby }}
|
|
36
|
+
bundler-cache: true
|
|
37
|
+
|
|
38
|
+
- run: bundle update --jobs $(nproc) --retry 3
|
|
39
|
+
|
|
40
|
+
- name: Run Itamae
|
|
41
|
+
run: |
|
|
42
|
+
set -xe
|
|
43
|
+
bundle exec itamae docker --node-yaml=spec/recipes/node.yml spec/recipes/install.rb --image=$IMAGE --tag itamae-plugin:latest
|
|
44
|
+
env:
|
|
45
|
+
IMAGE: ${{ matrix.image }}
|
|
46
|
+
|
|
47
|
+
- name: Run Serverspec
|
|
48
|
+
run: |
|
|
49
|
+
set -xe
|
|
50
|
+
bundle exec rspec
|
|
51
|
+
env:
|
|
52
|
+
DOCKER_IMAGE: itamae-plugin:latest
|
|
53
|
+
|
|
54
|
+
- name: Slack Notification (not success)
|
|
55
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
56
|
+
if: "! success()"
|
|
57
|
+
continue-on-error: true
|
|
58
|
+
with:
|
|
59
|
+
status: ${{ job.status }}
|
|
60
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
61
|
+
matrix: ${{ toJson(matrix) }}
|
|
62
|
+
|
|
63
|
+
notify:
|
|
64
|
+
needs:
|
|
65
|
+
- test
|
|
66
|
+
|
|
67
|
+
runs-on: ubuntu-latest
|
|
68
|
+
|
|
69
|
+
steps:
|
|
70
|
+
- name: Slack Notification (success)
|
|
71
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
72
|
+
if: always()
|
|
73
|
+
continue-on-error: true
|
|
74
|
+
with:
|
|
75
|
+
status: ${{ job.status }}
|
|
76
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
## master
|
|
2
|
-
[full changelog](https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/compare/v0.2.
|
|
2
|
+
[full changelog](https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/compare/v0.2.4...master)
|
|
3
|
+
|
|
4
|
+
## [0.2.4](https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/releases/tag/v0.2.4)
|
|
5
|
+
[full changelog](https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/compare/v0.2.3...v0.2.4)
|
|
6
|
+
|
|
7
|
+
* Release gem from GitHub Actions
|
|
8
|
+
* https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/pull/33
|
|
9
|
+
|
|
10
|
+
## 0.2.3
|
|
11
|
+
[full changelog](https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/compare/v0.2.2...v0.2.3)
|
|
12
|
+
|
|
13
|
+
* Enable MFA requirement for gem releasing
|
|
14
|
+
* https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/pull/23
|
|
3
15
|
|
|
4
16
|
## 0.2.2
|
|
5
17
|
[full changelog](https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/compare/v0.2.1...v0.2.2)
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Itamae plugin to install [GitLab Runner](https://docs.gitlab.com/runner/)
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/rb/itamae-plugin-recipe-gitlab_runner)
|
|
6
|
-
[](https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/actions/workflows/test.yml)
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
|
@@ -14,6 +14,11 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.homepage = "https://github.com/sue445/itamae-plugin-recipe-gitlab_runner"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
19
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
|
20
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
21
|
+
|
|
17
22
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
|
18
23
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
|
19
24
|
if spec.respond_to?(:metadata)
|
|
@@ -36,8 +41,8 @@ Gem::Specification.new do |spec|
|
|
|
36
41
|
|
|
37
42
|
spec.add_dependency "itamae"
|
|
38
43
|
|
|
39
|
-
spec.add_development_dependency "bundler", "
|
|
44
|
+
spec.add_development_dependency "bundler", ">= 1.16"
|
|
40
45
|
spec.add_development_dependency "docker-api"
|
|
41
|
-
spec.add_development_dependency "rake"
|
|
46
|
+
spec.add_development_dependency "rake"
|
|
42
47
|
spec.add_development_dependency "serverspec"
|
|
43
48
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: itamae
|
|
@@ -28,14 +27,14 @@ dependencies:
|
|
|
28
27
|
name: bundler
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
|
-
- - "
|
|
30
|
+
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
32
|
version: '1.16'
|
|
34
33
|
type: :development
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
|
-
- - "
|
|
37
|
+
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
39
|
version: '1.16'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
@@ -56,16 +55,16 @@ dependencies:
|
|
|
56
55
|
name: rake
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
|
-
- - "
|
|
58
|
+
- - ">="
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
60
|
+
version: '0'
|
|
62
61
|
type: :development
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
|
-
- - "
|
|
65
|
+
- - ">="
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
67
|
+
version: '0'
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
69
|
name: serverspec
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -87,9 +86,11 @@ executables: []
|
|
|
87
86
|
extensions: []
|
|
88
87
|
extra_rdoc_files: []
|
|
89
88
|
files:
|
|
89
|
+
- ".github/dependabot.yml"
|
|
90
|
+
- ".github/workflows/release_gem.yml"
|
|
91
|
+
- ".github/workflows/test.yml"
|
|
90
92
|
- ".gitignore"
|
|
91
93
|
- ".rspec"
|
|
92
|
-
- ".travis.yml"
|
|
93
94
|
- CHANGELOG.md
|
|
94
95
|
- Gemfile
|
|
95
96
|
- LICENSE.txt
|
|
@@ -110,7 +111,7 @@ metadata:
|
|
|
110
111
|
homepage_uri: https://github.com/sue445/itamae-plugin-recipe-gitlab_runner
|
|
111
112
|
source_code_uri: https://github.com/sue445/itamae-plugin-recipe-gitlab_runner
|
|
112
113
|
changelog_uri: https://github.com/sue445/itamae-plugin-recipe-gitlab_runner/blob/master/CHANGELOG.md
|
|
113
|
-
|
|
114
|
+
rubygems_mfa_required: 'true'
|
|
114
115
|
rdoc_options: []
|
|
115
116
|
require_paths:
|
|
116
117
|
- lib
|
|
@@ -125,9 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
125
126
|
- !ruby/object:Gem::Version
|
|
126
127
|
version: '0'
|
|
127
128
|
requirements: []
|
|
128
|
-
|
|
129
|
-
rubygems_version: 2.7.7
|
|
130
|
-
signing_key:
|
|
129
|
+
rubygems_version: 3.6.7
|
|
131
130
|
specification_version: 4
|
|
132
131
|
summary: Itamae plugin to install GitLab Runner
|
|
133
132
|
test_files: []
|
data/.travis.yml
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
sudo: required
|
|
3
|
-
services:
|
|
4
|
-
- docker
|
|
5
|
-
rvm:
|
|
6
|
-
- 2.5
|
|
7
|
-
env:
|
|
8
|
-
- IMAGE=centos:7
|
|
9
|
-
- IMAGE=debian:jessie
|
|
10
|
-
- IMAGE=amazonlinux:2
|
|
11
|
-
bundler_args: "--jobs=4"
|
|
12
|
-
cache: bundler
|
|
13
|
-
before_install:
|
|
14
|
-
- gem update --system --no-document
|
|
15
|
-
- gem install bundler --no-document
|
|
16
|
-
script:
|
|
17
|
-
- bundle exec itamae docker --node-yaml=spec/recipes/node.yml spec/recipes/install.rb --image=$IMAGE --tag itamae-plugin:latest
|
|
18
|
-
- DOCKER_IMAGE=itamae-plugin:latest bundle exec rspec
|
|
19
|
-
branches:
|
|
20
|
-
only:
|
|
21
|
-
- master
|
|
22
|
-
notifications:
|
|
23
|
-
email: false
|
|
24
|
-
slack:
|
|
25
|
-
secure: Wd60nazhMcyK7w+j4owi7ZWBCbEl0ZdPkp+Ir+c1jYwXNC4kDF5bSU0YfBtApiDBozI7OGe8U66Z6CTGyvbSt0+pM17xGW9COz/sDDwUkxawr/X+ZVYzLx0QwIYhnwqv3A0Yy8lAAAeB/GNaVzvVajflJrLY4O4qin7vpoVOexrLFY08brFBr67BxgZJBprtgjgKxyIFRYBln/1pSfDG/rtTxlpqDnh7tPk0lysNznd350Sj6Lh02ZYblBwyypo/BTF7nflgi7cxFLaXTNVJ4d5xrrq2QkoTcuqm3fw897hp0lCHitu3EnPur7Aro7C+nzejIK2mJBgRI7gBsmOj+cQBWDfRh/CIsGIZ3+lkOC+mfI0GH18kvnaSpc9WzvjoIDHiJZxtuVrqHdUiYaf+ewRkHi5IaOO3hlWr1KrIj+2A83KrbOjsGY9sE9jN8eD0jkfG7bsqLhpNv7CX+GVZSsAaapYl2WHprN0eVnvfCKbGB/GJUGq5BJxdxrSlioKuNeCNlUavfSnjUAknf3g+zDh+3RDlPCnnFNtp4i45tBmAUwf66JMmN+8UdDCLL+9teQjsVmrQh/JW/ExM/OYZF5ceW8yXNams+GjzKrayzoSHGJIRhWHzsaG1unmkvbIM7OcRdrNmudHBUP46W25TwXq4JXufmbojtShuNTyzTSA=
|