harrison 0.9.2 → 0.9.4

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: 9a145afbc3b9cbd07594d187e9152eb774003e8117587c2d016f7ed05fb16b4c
4
- data.tar.gz: 486fb39b730ce546a2fd0721dfb846daf259f9fe04df950bb4882f634a4d7933
3
+ metadata.gz: 74604c27358da38be2585e61cc93497757ce9ec7e0fe7b388df6538b75b9338c
4
+ data.tar.gz: 14338feed45585b1326665804e5a403c3c532991d0410b1a43c13bbdddd8c19c
5
5
  SHA512:
6
- metadata.gz: ca4e5c1faa31d7c11e12d0ac6c41ba409a5f6796dac19c91b86798ba0db0b34d10effecd724e74873049e9ceed312c055b17fec7a17bd42d481879bfb2be41dd
7
- data.tar.gz: 5ade0469ba48eca21d5e2a863c1d554bcf48327996929ecf845a0d1348d0de2fd98b8a220e722ef6c415b7fd40a18c63672265e689147542e10cf0211a57ffd2
6
+ metadata.gz: c84b7e84db2870970e1bdddcf6f0938c59aef5f01bf17435342138721c6dd89c84365a2e79d51f74ba946f646d3371f92f98867acf78d9020c4dac405840ab8b
7
+ data.tar.gz: 664497ca136cd02be0b55f5a28460cb90828208392a2c00322d46acca3c2a21b51931901a490b9fa9d7b2f98777f57436c9bc6404c44389bf3c2718bd15cf4ed
@@ -0,0 +1,10 @@
1
+ ## Summary
2
+ Provide a detailed description of all the changes present in this pull request.
3
+
4
+ ## Additional Context
5
+ Add any additional context about the problem here.
6
+ - [ ] Root cause and the steps to reproduce. (If applicable)
7
+ - [ ] Thought process behind the implementation.
8
+
9
+ ## Related Issues (if any)
10
+ Mention any related issues or pull requests.
@@ -0,0 +1,27 @@
1
+ name: Labeller
2
+
3
+ on:
4
+ issues:
5
+ types:
6
+ - opened
7
+ - labeled
8
+ - unlabeled
9
+ pull_request_target:
10
+ types:
11
+ - opened
12
+ - labeled
13
+ - unlabeled
14
+
15
+ jobs:
16
+ label:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+
20
+ - uses: puppetlabs/community-labeller@v1.0.1
21
+ name: Label issues or pull requests
22
+ with:
23
+ label_name: community
24
+ label_color: '5319e7'
25
+ org_membership: puppetlabs
26
+ fail_if_member: 'true'
27
+ token: ${{ secrets.IAC_COMMUNITY_LABELER }}
@@ -0,0 +1,16 @@
1
+ name: "release"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ target:
7
+ description: "The target for the release. This can be a commit sha or a branch."
8
+ required: false
9
+ default: "main"
10
+
11
+ jobs:
12
+ release:
13
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main"
14
+ with:
15
+ target: "${{ github.event.inputs.target }}"
16
+ secrets: "inherit"
@@ -0,0 +1,20 @@
1
+ name: "release prep"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ target:
7
+ description: "The target for the release. This can be a commit sha or a branch."
8
+ required: false
9
+ default: "main"
10
+ version:
11
+ description: "Version of gem to be released."
12
+ required: true
13
+
14
+ jobs:
15
+ release_prep:
16
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main"
17
+ with:
18
+ target: "${{ github.event.inputs.target }}"
19
+ version: "${{ github.events.inputs.version }}"
20
+ secrets: "inherit"
data/.gitignore CHANGED
@@ -21,3 +21,4 @@ tmp
21
21
  *.a
22
22
  mkmf.log
23
23
  /Harrisonfile
24
+ /vendor/
data/CHANGELOG.md ADDED
@@ -0,0 +1,66 @@
1
+ <!-- markdownlint-disable MD024 -->
2
+ # Changelog
3
+
4
+ All notable changes to this project will be documented in this file.
5
+
6
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
7
+
8
+ ## [v0.9.4](https://github.com/puppetlabs/harrison/tree/v0.9.4) - 2023-10-19
9
+
10
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.9.3...v0.9.4)
11
+
12
+ ### Added
13
+
14
+ - Adding release credence [#34](https://github.com/puppetlabs/harrison/pull/34) ([malikparvez](https://github.com/malikparvez))
15
+
16
+ ## [v0.9.3](https://github.com/puppetlabs/harrison/tree/v0.9.3) - 2023-06-05
17
+
18
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.9.2...v0.9.3)
19
+
20
+ ## [v0.9.2](https://github.com/puppetlabs/harrison/tree/v0.9.2) - 2022-02-22
21
+
22
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.9.1...v0.9.2)
23
+
24
+ ## [v0.9.1](https://github.com/puppetlabs/harrison/tree/v0.9.1) - 2020-10-20
25
+
26
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.9.0...v0.9.1)
27
+
28
+ ## [v0.9.0](https://github.com/puppetlabs/harrison/tree/v0.9.0) - 2020-08-03
29
+
30
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.8.0...v0.9.0)
31
+
32
+ ## [v0.8.0](https://github.com/puppetlabs/harrison/tree/v0.8.0) - 2019-08-05
33
+
34
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.7.0...v0.8.0)
35
+
36
+ ## [v0.7.0](https://github.com/puppetlabs/harrison/tree/v0.7.0) - 2018-04-30
37
+
38
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.6.0...v0.7.0)
39
+
40
+ ## [v0.6.0](https://github.com/puppetlabs/harrison/tree/v0.6.0) - 2016-09-19
41
+
42
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.5.0...v0.6.0)
43
+
44
+ ## [v0.5.0](https://github.com/puppetlabs/harrison/tree/v0.5.0) - 2016-08-18
45
+
46
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.4.0.b1...v0.5.0)
47
+
48
+ ## [v0.4.0.b1](https://github.com/puppetlabs/harrison/tree/v0.4.0.b1) - 2016-07-12
49
+
50
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.3.0...v0.4.0.b1)
51
+
52
+ ## [v0.3.0](https://github.com/puppetlabs/harrison/tree/v0.3.0) - 2014-10-20
53
+
54
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.2.0...v0.3.0)
55
+
56
+ ## [v0.2.0](https://github.com/puppetlabs/harrison/tree/v0.2.0) - 2014-09-10
57
+
58
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.1.0...v0.2.0)
59
+
60
+ ## [v0.1.0](https://github.com/puppetlabs/harrison/tree/v0.1.0) - 2014-08-08
61
+
62
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/v0.0.1...v0.1.0)
63
+
64
+ ## [v0.0.1](https://github.com/puppetlabs/harrison/tree/v0.0.1) - 2014-07-21
65
+
66
+ [Full Changelog](https://github.com/puppetlabs/harrison/compare/cef214380eda163ca292dd49a60a9d0a9facf2e7...v0.0.1)
data/History.md ADDED
@@ -0,0 +1,90 @@
1
+ 0.9.2
2
+ -------------------
3
+ - Bumped dependencies on highline and bundler to latest majors
4
+
5
+ 0.9.1
6
+ -------------------
7
+ - Bumped dependencies on net-ssh and net-scp to latest majors
8
+
9
+ 0.9.0
10
+ -------------------
11
+ - Added ability to package via Docker
12
+ - Added ability to generate multiple builds from a single invocation (when building via Docker)
13
+
14
+ 0.8.0
15
+ -------------------
16
+ - BREAKING: Bumped required Ruby version to >= 2.3.1
17
+ - Bumped net-ssh to 5.2.x
18
+ - Bumped net-scp to 2.0.x
19
+
20
+ 0.7.0
21
+ -------------------
22
+ - Added ability to calculate build host dynamically in package task.
23
+
24
+ 0.6.0
25
+ -------------------
26
+ - Added ability to package from forks. When packaging from HEAD or a branch,
27
+ harrison will now check to see if that branch is tracking a remote branch.
28
+ If so, it will attempt to package code from that remote. If the branch
29
+ being packaged is not tracking a remote branch, or if what is being packaged
30
+ is not a branch, harrison will look for a remote named "origin" and package
31
+ from there. Lastly, if there is not a remote named "origin", it will package
32
+ from the configured "git_src".
33
+
34
+ 0.5.0
35
+ -------------------
36
+ - BREAKING: Bumped net-ssh to 3.2.x which results in Harrison now
37
+ requiring Ruby >= 2.0.
38
+
39
+ 0.4.0b1
40
+ -------------------
41
+ - Fixed a bug where config changes inside of one task could leak into
42
+ other tasks. (#22)
43
+
44
+ - Added the ability to limit the number of times a given phase will be
45
+ invoked during a deploy. (E.g. run a task on only the first host
46
+ deployed to.)
47
+
48
+ - Added the ability for target hosts to be a Proc so that hosts can be
49
+ dynamically computed.
50
+
51
+ - Added the ability to require interactive confirmation of target hosts
52
+ before proceeding with a deploy.
53
+
54
+ 0.3.0
55
+ -------------------
56
+ - BREAKING: Definition of "deploy" task has significantly changed. Deploys
57
+ are now comprised of 1 or more phases and each phase must complete
58
+ successfully on all hosts before proceeding to the next phase. If an
59
+ error is encountered, Harrison will attempt to unwind any changes made
60
+ by previously completed phases by invoking the code block supplied to
61
+ each phase's "on_fail" method. There are several built-in phases to
62
+ perform common deployment related tasks. See the README for more
63
+ information.
64
+
65
+ - BREAKING: Commands executed with remote_exec() inside the "run" block of
66
+ the "package" task will now execute in your commit working directory, so
67
+ you no longer need to prefix commands with "cd #{h.commit}". You will
68
+ need to update existing Harrisonfile "package" run blocks to reflect the
69
+ change of execution context.
70
+
71
+ - Allow multiple users to execute the "package" task for the same project
72
+ simultaneously.
73
+
74
+ - Added "rollback" command which will create a new deploy pointing to the
75
+ previously active release.
76
+
77
+ 0.2.0
78
+ -------------------
79
+ - Implemented the ability to purge old releases after a successful deploy.
80
+
81
+ 0.1.0
82
+ -------------------
83
+ - Renamed --pkg_dir option of 'package' task to --destination
84
+ - Implemented remote destinations for 'package' task.
85
+ - Implemented remote artifact sources for 'deploy' task.
86
+ - Added a default timeout of 10 seconds when establishing an SSH connection.
87
+
88
+ 0.0.1
89
+ -------------------
90
+ - Initial public release.
@@ -182,6 +182,7 @@ module Harrison
182
182
 
183
183
  docker_build_argv = [
184
184
  'docker', 'build',
185
+ '--platform', 'linux/amd64',
185
186
  '--file', df,
186
187
  '--tag', docker_image_tag,
187
188
  '.',
@@ -202,6 +203,7 @@ module Harrison
202
203
 
203
204
  docker_run_argv = [
204
205
  "docker", "run",
206
+ "--platform", "linux/amd64",
205
207
  "--mount", "type=bind,source=#{tmp_src_dir},target=/src,readonly",
206
208
  "--mount", "type=bind,source=\"$(pwd)/pkg\",target=/pkg",
207
209
  docker_image_tag,
@@ -1,3 +1,3 @@
1
1
  module Harrison
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harrison
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Scott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-23 00:00:00.000000000 Z
11
+ date: 2023-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop
@@ -158,13 +158,18 @@ executables:
158
158
  extensions: []
159
159
  extra_rdoc_files: []
160
160
  files:
161
+ - ".github/pull_request_template.md"
162
+ - ".github/workflows/labeller.yml"
163
+ - ".github/workflows/release.yml"
164
+ - ".github/workflows/release_prep.yml"
161
165
  - ".github/workflows/ruby-spec.yml"
162
166
  - ".gitignore"
163
167
  - ".rspec"
164
168
  - CHANGELOG
169
+ - CHANGELOG.md
165
170
  - CODEOWNERS
166
171
  - Gemfile
167
- - Gemfile.lock
172
+ - History.md
168
173
  - IDEAS
169
174
  - LICENSE.txt
170
175
  - README.md
@@ -208,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
213
  - !ruby/object:Gem::Version
209
214
  version: '0'
210
215
  requirements: []
211
- rubygems_version: 3.0.3
216
+ rubygems_version: 3.1.6
212
217
  signing_key:
213
218
  specification_version: 4
214
219
  summary: Simple artifact-based deployment for web applications.
data/Gemfile.lock DELETED
@@ -1,79 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- harrison (0.9.2)
5
- highline (~> 2.0.3)
6
- net-scp (~> 3.0)
7
- net-ssh (~> 6.1)
8
- trollop (~> 2.1.2)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- byebug (11.1.3)
14
- coderay (1.1.3)
15
- diff-lcs (1.5.0)
16
- docile (1.4.0)
17
- file-tail (1.2.0)
18
- tins (~> 1.0)
19
- highline (2.0.3)
20
- method_source (1.0.0)
21
- net-scp (3.0.0)
22
- net-ssh (>= 2.6.5, < 7.0.0)
23
- net-ssh (6.1.0)
24
- pry (0.13.1)
25
- coderay (~> 1.1)
26
- method_source (~> 1.0)
27
- pry-byebug (3.9.0)
28
- byebug (~> 11.0)
29
- pry (~> 0.13.0)
30
- rake (13.0.6)
31
- rspec (3.11.0)
32
- rspec-core (~> 3.11.0)
33
- rspec-expectations (~> 3.11.0)
34
- rspec-mocks (~> 3.11.0)
35
- rspec-core (3.11.0)
36
- rspec-support (~> 3.11.0)
37
- rspec-expectations (3.11.0)
38
- diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.11.0)
40
- rspec-mocks (3.11.0)
41
- diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.11.0)
43
- rspec-support (3.11.0)
44
- ruby2ruby (2.4.4)
45
- ruby_parser (~> 3.1)
46
- sexp_processor (~> 4.6)
47
- ruby_parser (3.18.1)
48
- sexp_processor (~> 4.16)
49
- sexp_processor (4.16.0)
50
- simplecov (0.21.2)
51
- docile (~> 1.1)
52
- simplecov-html (~> 0.11)
53
- simplecov_json_formatter (~> 0.1)
54
- simplecov-html (0.12.3)
55
- simplecov_json_formatter (0.1.4)
56
- sourcify (0.5.0)
57
- file-tail (>= 1.0.5)
58
- ruby2ruby (>= 1.2.5)
59
- ruby_parser (>= 2.0.5)
60
- sexp_processor (>= 3.0.5)
61
- sync (0.5.0)
62
- tins (1.31.0)
63
- sync
64
- trollop (2.1.3)
65
-
66
- PLATFORMS
67
- x86_64-darwin-18
68
-
69
- DEPENDENCIES
70
- bundler (~> 2.3)
71
- harrison!
72
- pry-byebug
73
- rake
74
- rspec (~> 3.0)
75
- simplecov
76
- sourcify
77
-
78
- BUNDLED WITH
79
- 2.3.7