itamae-plugin-recipe-consul 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c9f3f64a2a1c656572b41f18d9761fe188ddbfa9d8ffbc7e049f2188353b6e7
4
- data.tar.gz: 3c606a7e9a5342b0e2d882bec52a250b702ca0fccd76f06301797ddad9a7fc3b
3
+ metadata.gz: 11f609d68c20e8cf1006e6b93a85907d686de0fc3f4be94a66739044ae0a5f08
4
+ data.tar.gz: 763dcc6c9b8a3f441621d7e38921d6aefc099640daf1d2b166912acc50374d02
5
5
  SHA512:
6
- metadata.gz: 5e2295733b36874f90da2685ef977f8a1d79c31214bd28b5f32f13871abd416a605c400b63618225c069801467b5df34dcd4045185586292fc572855cb9587fb
7
- data.tar.gz: 0d3dd7436d0d476da1189821d899652ca68e8a273f4048e90115c4338580e9e4235422f079adf00ed0e55f4ff0c65707d2a2f38c668cdb94a0ad77519538b490
6
+ metadata.gz: 538a6b5a5920831e60053fcbfe28366ccb921f9d242546e1e89e2b5d9f614d3a56eb753222bcce350693b6442c212b1a7e80647b03739b3bc38f827e225eb69d
7
+ data.tar.gz: 661d838fc35315ba09e5490056d53ec1ac5de141f65fca0c00a5f427cdbbc399b91e7da3cf17e4d260e9977d29e628ed2a9d0c73cf16d2b250265663806c8526
@@ -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-consul'
9
+ runs-on: ubuntu-latest
10
+
11
+ environment:
12
+ name: rubygems.org
13
+ url: https://rubygems.org/gems/itamae-plugin-recipe-consul
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 }}
@@ -12,9 +12,6 @@ on:
12
12
  schedule:
13
13
  - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
14
 
15
- env:
16
- CI: "true"
17
-
18
15
  jobs:
19
16
  test:
20
17
  runs-on: ubuntu-latest
@@ -24,49 +21,31 @@ jobs:
24
21
 
25
22
  matrix:
26
23
  ruby:
27
- - 2.3
24
+ - "2.3"
28
25
  image:
29
- - centos:7
30
- - centos:8
31
- - debian:jessie
32
- - debian:stretch
33
- - debian:buster
26
+ - debian:bullseye
27
+ - debian:bookworm
34
28
 
35
29
  steps:
36
- - uses: actions/checkout@v2
30
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
37
31
 
38
- - uses: eregon/use-ruby-action@v1
32
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
39
33
  with:
40
34
  ruby-version: ${{ matrix.ruby }}
35
+ bundler-cache: true
41
36
 
42
- - name: Cache vendor/bundle
43
- uses: actions/cache@v1
44
- id: cache_gem
45
- with:
46
- path: vendor/bundle
47
- key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
48
- restore-keys: |
49
- v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
50
-
51
- - name: bundle update
52
- run: |
53
- set -xe
54
- bundle config path vendor/bundle
55
- bundle update --jobs $(nproc) --retry 3
37
+ - run: bundle update --jobs $(nproc) --retry 3
56
38
 
57
39
  - name: Start container
58
40
  run: |
59
41
  set -xe
60
42
 
61
43
  case "$IMAGE" in
62
- "debian:stretch" | "debian:buster" )
44
+ "debian:"* )
63
45
  docker run --name tmp-debian $IMAGE bash -c "apt-get update && apt-get install -y systemd-sysv"
64
46
  docker commit tmp-debian debian-with-systemd
65
47
  docker run --privileged -d --name container-with-service debian-with-systemd /sbin/init
66
48
  ;;
67
- *)
68
- docker run --privileged -d --name container-with-service $IMAGE /sbin/init
69
- ;;
70
49
  esac
71
50
  env:
72
51
  IMAGE: ${{ matrix.image }}
@@ -84,15 +63,13 @@ jobs:
84
63
  DOCKER_CONTAINER: container-with-service
85
64
 
86
65
  - name: Slack Notification (not success)
87
- uses: lazy-actions/slatify@master
66
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
88
67
  if: "! success()"
89
68
  continue-on-error: true
90
69
  with:
91
- job_name: ${{ format('*build* ({0}, {1})', matrix.ruby, matrix.image) }}
92
- type: ${{ job.status }}
93
- icon_emoji: ":octocat:"
94
- url: ${{ secrets.SLACK_WEBHOOK }}
95
- token: ${{ secrets.GITHUB_TOKEN }}
70
+ status: ${{ job.status }}
71
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
72
+ matrix: ${{ toJson(matrix) }}
96
73
 
97
74
  notify:
98
75
  needs:
@@ -102,12 +79,9 @@ jobs:
102
79
 
103
80
  steps:
104
81
  - name: Slack Notification (success)
105
- uses: lazy-actions/slatify@master
82
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
106
83
  if: always()
107
84
  continue-on-error: true
108
85
  with:
109
- job_name: '*build*'
110
- type: ${{ job.status }}
111
- icon_emoji: ":octocat:"
112
- url: ${{ secrets.SLACK_WEBHOOK }}
113
- token: ${{ secrets.GITHUB_TOKEN }}
86
+ status: ${{ job.status }}
87
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
data/CHANGELOG.md CHANGED
@@ -1,4 +1,13 @@
1
1
  # Change Log
2
+ ## Unreleased
3
+ [full changelog](http://github.com/sue445/itamae-plugin-recipe-consul/compare/v0.1.6...master)
4
+
5
+ ## [v0.1.6](https://github.com/sue445/itamae-plugin-recipe-consul/releases/tag/v0.1.6) (2025-11-29)
6
+
7
+ [Full Changelog](https://github.com/sue445/itamae-plugin-recipe-consul/compare/v0.1.5...v0.1.6)
8
+
9
+ * Release gem from GitHub Actions
10
+ * https://github.com/sue445/itamae-plugin-recipe-consul/pull/48
2
11
 
3
12
  ## [v0.1.5](https://github.com/sue445/itamae-plugin-recipe-consul/tree/v0.1.5) (2021-11-20)
4
13
 
data/README.md CHANGED
@@ -3,12 +3,10 @@
3
3
  Itamae plugin to install [Consul](https://www.consul.io/) with init scripts
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/itamae-plugin-recipe-consul.svg)](https://badge.fury.io/rb/itamae-plugin-recipe-consul)
6
- [![Build Status](https://github.com/sue445/itamae-plugin-recipe-consul/workflows/test/badge.svg?branch=master)](https://github.com/sue445/itamae-plugin-recipe-consul/actions?query=workflow%3Atest)
6
+ [![test](https://github.com/sue445/itamae-plugin-recipe-consul/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/itamae-plugin-recipe-consul/actions/workflows/test.yml)
7
7
 
8
8
  ## Supported
9
- * CentOS 6 (init.d)
10
- * CentOS 7+ (systemd)
11
- * Debian 8+ (systemd)
9
+ * Debian 10+ (systemd)
12
10
 
13
11
  ## Installation
14
12
 
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Consul
5
- VERSION = "0.1.5"
5
+ VERSION = "0.1.6"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-consul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2021-11-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: itamae
@@ -87,6 +86,8 @@ executables: []
87
86
  extensions: []
88
87
  extra_rdoc_files: []
89
88
  files:
89
+ - ".github/dependabot.yml"
90
+ - ".github/workflows/release_gem.yml"
90
91
  - ".github/workflows/test.yml"
91
92
  - ".gitignore"
92
93
  - ".rspec"
@@ -120,7 +121,6 @@ metadata:
120
121
  source_code_uri: https://github.com/sue445/itamae-plugin-recipe-consul
121
122
  changelog_uri: https://github.com/sue445/itamae-plugin-recipe-consul/blob/master/CHANGELOG.md
122
123
  rubygems_mfa_required: 'true'
123
- post_install_message:
124
124
  rdoc_options: []
125
125
  require_paths:
126
126
  - lib
@@ -135,8 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.2.22
139
- signing_key:
138
+ rubygems_version: 3.6.7
140
139
  specification_version: 4
141
140
  summary: Itamae plugin to install Consul with init scripts
142
141
  test_files: []