foreman_envsync 1.4.1 → 1.5.0

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: ce024c44d5429e2072e68add6244287999429a4222a73bff1f68244100d5cfd9
4
- data.tar.gz: 375478ec27003f15f4c462bbd3974149f0d6f665850c9c7ed4ff5ab19c803c07
3
+ metadata.gz: ea84ed2492987c6177cbbb284c5c3f0a0171adf6f63f485cd844239cf18ad972
4
+ data.tar.gz: 0dc7c4f3910a3e09d40e5bae6494096020ee3b8487db95e276694eb95ba1eb25
5
5
  SHA512:
6
- metadata.gz: 14303c21ba7370e97c9950de54ae5d92f15a551b3a829249873295c57190271c57daeddc0fd04bd115bda13ed558d946a7e310868b4004320b2a73f9b7d0cdbd
7
- data.tar.gz: f30fe471f95524c48271fc1a305007187281719b43e92a3230860a626a032e57c4d5f98819a3503fc5157957061e6879e56b6c8ffe4998acdf10641b80290b92
6
+ metadata.gz: 380f9f89bdd542574891899a85aac950eb6b3b8ae371096ac2c6558cfd1ecfcc26368ebb335b43f34377ad72775b77dbe955905e63ca89ea998172c811fd0152
7
+ data.tar.gz: 577bcc6498cf76aca21e764a365c44df3c78332f912599ae12c1313eaae9ae95a51f8185d89e02e16e58aca3008a94665c2858ae4c2b9dc3fee6826336196c49
@@ -1,8 +1,10 @@
1
+ ---
1
2
  # based on https://github.com/docker/build-push-action/blob/master/docs/advanced/tags-labels.md
2
3
 
3
4
  name: ci
4
5
 
5
- on:
6
+ "on":
7
+ workflow_dispatch: {}
6
8
  schedule:
7
9
  - cron: '0 10 * * 1'
8
10
  push:
@@ -13,23 +15,32 @@ on:
13
15
  pull_request:
14
16
  branches:
15
17
  - 'main'
18
+ - 'master'
19
+
20
+ env:
21
+ REGISTRY: ghcr.io
22
+ IMAGE_NAME: ${{ github.repository }}
16
23
 
17
24
  jobs:
18
25
  release:
19
- runs-on: ubuntu-latest
20
26
  if: github.repository == 'lsst-it/foreman_envsync'
27
+ runs-on: ubuntu-latest
21
28
  steps:
22
29
  - name: Checkout
23
30
  uses: actions/checkout@v3
31
+
24
32
  - name: Set up Ruby
25
33
  uses: ruby/setup-ruby@v1
26
34
  with:
27
35
  ruby-version: 3.0
28
36
  bundler-cache: true
37
+
29
38
  - name: Run the default task
30
39
  run: bundle exec rake
40
+
31
41
  - name: Build gem
32
42
  run: gem build *.gemspec
43
+
33
44
  - name: Publish gem to rubygems.org
34
45
  if: startsWith(github.ref, 'refs/tags/v')
35
46
  run: gem push *.gem
@@ -40,18 +51,30 @@ jobs:
40
51
  id: meta
41
52
  uses: docker/metadata-action@v4
42
53
  with:
43
- images: |
44
- lsstit/foreman_envsync
54
+ images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
55
+ tags: |
56
+ type=schedule
57
+ type=ref,event=branch
58
+ type=ref,event=pr
59
+ type=semver,pattern={{version}}
60
+ type=semver,pattern={{major}}.{{minor}}
61
+ type=semver,pattern={{major}}
62
+ type=sha
63
+
45
64
  - name: Set up QEMU
46
65
  uses: docker/setup-qemu-action@v2
66
+
47
67
  - name: Set up Docker Buildx
48
68
  uses: docker/setup-buildx-action@v2
49
- - name: Login to DockerHub
69
+
70
+ - name: Login to OCI registry
50
71
  if: github.event_name != 'pull_request'
51
72
  uses: docker/login-action@v2
52
73
  with:
53
- username: ${{ secrets.DOCKERHUB_LSSTIT_USERNAME }}
54
- password: ${{ secrets.DOCKERHUB_LSSTIT_PASSWORD }}
74
+ registry: ${{ env.REGISTRY }}
75
+ username: ${{ github.actor }}
76
+ password: ${{ secrets.GITHUB_TOKEN }}
77
+
55
78
  - name: Build and push
56
79
  uses: docker/build-push-action@v3
57
80
  with:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,114 @@
1
- ## [Unreleased]
1
+ # Changelog
2
2
 
3
- ## [0.1.0] - 2021-06-04
3
+ ## [1.5.0](https://github.com/lsst-it/foreman_envsync/tree/1.5.0) (2023-03-15)
4
4
 
5
- - Initial release
5
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.4.1...1.5.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - migrate from hub.docker.com -\> ghcr.io [\#16](https://github.com/lsst-it/foreman_envsync/pull/16) ([jhoblitt](https://github.com/jhoblitt))
10
+
11
+ ## [v1.4.1](https://github.com/lsst-it/foreman_envsync/tree/v1.4.1) (2022-09-13)
12
+
13
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.4.0...v1.4.1)
14
+
15
+ **Fixed bugs:**
16
+
17
+ - fix \#verbose\_list not appending a new line when items arg is empty [\#15](https://github.com/lsst-it/foreman_envsync/pull/15) ([jhoblitt](https://github.com/jhoblitt))
18
+
19
+ ## [v1.4.0](https://github.com/lsst-it/foreman_envsync/tree/v1.4.0) (2022-09-13)
20
+
21
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.3.0...v1.4.0)
22
+
23
+ **Fixed bugs:**
24
+
25
+ - fix `sort': comparison of Hash with Hash failed error [\#13](https://github.com/lsst-it/foreman_envsync/pull/13) ([jhoblitt](https://github.com/jhoblitt))
26
+
27
+ ## [v1.3.0](https://github.com/lsst-it/foreman_envsync/tree/v1.3.0) (2022-08-23)
28
+
29
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.2.3...v1.3.0)
30
+
31
+ **Implemented enhancements:**
32
+
33
+ - prefer new puppetserver 7 ca\_crt.pem path [\#11](https://github.com/lsst-it/foreman_envsync/pull/11) ([jhoblitt](https://github.com/jhoblitt))
34
+
35
+ ## [v1.2.3](https://github.com/lsst-it/foreman_envsync/tree/v1.2.3) (2022-08-04)
36
+
37
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.2.2...v1.2.3)
38
+
39
+ ## [v1.2.2](https://github.com/lsst-it/foreman_envsync/tree/v1.2.2) (2022-08-04)
40
+
41
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.2.1...v1.2.2)
42
+
43
+ ## [v1.2.1](https://github.com/lsst-it/foreman_envsync/tree/v1.2.1) (2022-08-04)
44
+
45
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.2.0...v1.2.1)
46
+
47
+ ## [v1.2.0](https://github.com/lsst-it/foreman_envsync/tree/v1.2.0) (2022-08-04)
48
+
49
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.1.1...v1.2.0)
50
+
51
+ **Implemented enhancements:**
52
+
53
+ - sort lists of items dumped out as YAML [\#8](https://github.com/lsst-it/foreman_envsync/pull/8) ([jhoblitt](https://github.com/jhoblitt))
54
+ - add gha rubygems & docker hub releases [\#7](https://github.com/lsst-it/foreman_envsync/pull/7) ([jhoblitt](https://github.com/jhoblitt))
55
+
56
+ **Fixed bugs:**
57
+
58
+ - fix ruby3 compatibility [\#6](https://github.com/lsst-it/foreman_envsync/pull/6) ([jhoblitt](https://github.com/jhoblitt))
59
+
60
+ **Closed issues:**
61
+
62
+ - puppetserver and foreman known envs should be sorted for display [\#5](https://github.com/lsst-it/foreman_envsync/issues/5)
63
+
64
+ ## [v1.1.1](https://github.com/lsst-it/foreman_envsync/tree/v1.1.1) (2021-11-02)
65
+
66
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.1.0...v1.1.1)
67
+
68
+ **Fixed bugs:**
69
+
70
+ - allow delete report to be nil [\#4](https://github.com/lsst-it/foreman_envsync/pull/4) ([jhoblitt](https://github.com/jhoblitt))
71
+
72
+ ## [v1.1.0](https://github.com/lsst-it/foreman_envsync/tree/v1.1.0) (2021-11-02)
73
+
74
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.0.0...v1.1.0)
75
+
76
+ **Implemented enhancements:**
77
+
78
+ - allow undeletable foreman envs [\#3](https://github.com/lsst-it/foreman_envsync/pull/3) ([jhoblitt](https://github.com/jhoblitt))
79
+
80
+ ## [v1.0.0](https://github.com/lsst-it/foreman_envsync/tree/v1.0.0) (2021-06-10)
81
+
82
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v0.1.4...v1.0.0)
83
+
84
+ **Implemented enhancements:**
85
+
86
+ - add initial README [\#2](https://github.com/lsst-it/foreman_envsync/pull/2) ([jhoblitt](https://github.com/jhoblitt))
87
+
88
+ ## [v0.1.4](https://github.com/lsst-it/foreman_envsync/tree/v0.1.4) (2021-06-08)
89
+
90
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v0.1.3...v0.1.4)
91
+
92
+ ## [v0.1.3](https://github.com/lsst-it/foreman_envsync/tree/v0.1.3) (2021-06-08)
93
+
94
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v0.1.2...v0.1.3)
95
+
96
+ ## [v0.1.2](https://github.com/lsst-it/foreman_envsync/tree/v0.1.2) (2021-06-07)
97
+
98
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v0.1.1...v0.1.2)
99
+
100
+ ## [v0.1.1](https://github.com/lsst-it/foreman_envsync/tree/v0.1.1) (2021-06-07)
101
+
102
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v0.1.0...v0.1.1)
103
+
104
+ ## [v0.1.0](https://github.com/lsst-it/foreman_envsync/tree/v0.1.0) (2021-06-07)
105
+
106
+ [Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/45f9ba5c88833559ec7abe699be4b55cb0a7a2bc...v0.1.0)
107
+
108
+ **Implemented enhancements:**
109
+
110
+ - fwv [\#1](https://github.com/lsst-it/foreman_envsync/pull/1) ([jhoblitt](https://github.com/jhoblitt))
111
+
112
+
113
+
114
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/Gemfile CHANGED
@@ -5,8 +5,9 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in foreman_envsync.gemspec
6
6
  gemspec
7
7
 
8
+ gem "github_changelog_generator"
8
9
  gem "rake", "~> 13.0"
9
-
10
10
  gem "rspec", "~> 3.0"
11
-
12
11
  gem "rubocop", "~> 1.7"
12
+ gem "rubocop-rake", "~> 0.6"
13
+ gem "rubocop-rspec", "~> 2.19"
data/README.md CHANGED
@@ -7,7 +7,7 @@ classes within those puppet environments.
7
7
  ## OCI Image
8
8
 
9
9
  An OCI image containing this gem is published to docker hub as
10
- [`lsstit/foreman_envsync`](https://hub.docker.com/repository/docker/lsstit/foreman_envsync).
10
+ [`ghcr.io/lsst-it/foreman_envsync`](ghcr.io/lsst-it/foreman_envsync).
11
11
 
12
12
 
13
13
  ## The Problem
data/Rakefile CHANGED
@@ -1,12 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bundler/gem_tasks"
4
+ require "github_changelog_generator/task"
4
5
  require "rspec/core/rake_task"
6
+ require "rubocop/rake_task"
7
+ require "foreman_envsync"
5
8
 
6
9
  RSpec::Core::RakeTask.new(:spec)
7
10
 
8
- require "rubocop/rake_task"
9
-
10
11
  RuboCop::RakeTask.new
11
12
 
13
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
14
+ config.future_release = ForemanEnvsync::VERSION
15
+ config.exclude_labels = ["skip-changelog"]
16
+ config.user = "lsst-it"
17
+ config.project = "foreman_envsync"
18
+ end
19
+
12
20
  task default: %i[spec rubocop]
@@ -30,8 +30,6 @@ Gem::Specification.new do |spec|
30
30
  spec.add_runtime_dependency "hammer_cli_foreman"
31
31
  spec.add_runtime_dependency "hammer_cli_foreman_puppet"
32
32
  spec.add_runtime_dependency "rest-client", "~> 2.0"
33
- spec.add_development_dependency "rubocop-rake"
34
- spec.add_development_dependency "rubocop-rspec"
35
33
 
36
34
  # For more information and examples about making a new gem, checkout our
37
35
  # guide at: https://bundler.io/guides/creating_gem.html
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanEnvsync
4
- VERSION = "1.4.1"
4
+ VERSION = "1.5.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_envsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Hoblitt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-13 00:00:00.000000000 Z
11
+ date: 2023-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hammer_cli
@@ -66,34 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.0'
69
- - !ruby/object:Gem::Dependency
70
- name: rubocop-rake
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rubocop-rspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
69
  description:
98
70
  email:
99
71
  - josh@hoblitt.com
@@ -141,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
113
  - !ruby/object:Gem::Version
142
114
  version: '0'
143
115
  requirements: []
144
- rubygems_version: 3.3.7
116
+ rubygems_version: 3.4.6
145
117
  signing_key:
146
118
  specification_version: 4
147
119
  summary: Sync pupperserver envs with foreman