conjur-debify 3.0.3.pre.1971 → 3.0.3.pre.2005
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/README.md +1 -1
- data/VERSION +1 -1
- data/features/package.feature +8 -1
- data/lib/conjur/debify/action/publish.rb +18 -2
- data/lib/conjur/debify.rb +11 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ea9361be60b213c3065afa68e3aa9250c8f708692af466d52caf656c0efbbd1
|
4
|
+
data.tar.gz: 19fa8c2c730a5ac0459fa2707678cf65eac6039fff43eb48db48dab49e74f802
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 403934cf494cb55052cfd5802030c5a7afc86425fa8170c3cd7d8b88a72c9320013961f1e38c98cfd3e605f9a852be01ed40b11abaeab36fd44f5d3f8eb55f29
|
7
|
+
data.tar.gz: b0ab72a1b8ff2ca571b9accaaffc7200e6180d4480698f7f6b1683efa1cc98f2fa0f388bdbd1b4e09c073eebfe49e69324855a2f06b57ce17b3ab7aef5b33b07
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
## [3.0.3]
|
2
2
|
### Added
|
3
3
|
- Allow user to specify architecture of packages (arm64 or amd64)
|
4
|
+
- Upload artifacts for all packaged architectures to artifactory
|
5
|
+
|
6
|
+
### Fixed
|
7
|
+
- Fixed regressions introduced by incorrect linting fixes. Most significantly,
|
8
|
+
preventing the `VERSION` file from being included in release packages.
|
4
9
|
|
5
10
|
## [3.0.2]
|
6
11
|
### Changed
|
@@ -39,11 +44,11 @@
|
|
39
44
|
|
40
45
|
- Refine bundler related steps in `debify package` flow: only `package.sh` file configures
|
41
46
|
and invokes bundler. `Dockerfile.fpm` only copies files and adjusts folder structure.
|
42
|
-
- Remove bundler 1.* support
|
47
|
+
- Remove bundler 1.* support
|
43
48
|
|
44
49
|
# 2.0.0
|
45
50
|
### Changed
|
46
|
-
- Debify now receives the flag `--output` as input to indicate the file type that it should package (e.g `rpm`). If this
|
51
|
+
- Debify now receives the flag `--output` as input to indicate the file type that it should package (e.g `rpm`). If this
|
47
52
|
flag is not given, the default value is `deb`.
|
48
53
|
[conjurinc/debify#56](https://github.com/conjurinc/debify/issues/56)
|
49
54
|
|
data/README.md
CHANGED
@@ -117,7 +117,7 @@ COMMAND OPTIONS
|
|
117
117
|
--additional-files=arg - Specify files to add to the FPM image that are not included from the git repo (default: none)
|
118
118
|
-d, --dir=arg - Set the current working directory (default: none)
|
119
119
|
--dockerfile=arg - Specify a custom Dockerfile.fpm (default: none)
|
120
|
-
-i, --image=arg - Image name (default: cyberark/
|
120
|
+
-i, --image=arg - Image name (default: cyberark/ubuntu-ruby-builder)
|
121
121
|
-o, --output=arg - Set the output file type of the fpm command (e.g rpm) (default: none)
|
122
122
|
-t, --image-tag=arg - Image tag, e.g. 4.5-stable, 4.6-stable (default: latest)
|
123
123
|
-v, --version=arg - Specify the deb version; by default, it's read from the VERSION file (default: none)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.3-
|
1
|
+
3.0.3-2005
|
data/features/package.feature
CHANGED
@@ -38,7 +38,14 @@ Feature: Packaging
|
|
38
38
|
Then the stdout from "find ../../example" should not contain "conjur-example_0.0.1-suffix_arm64.deb"
|
39
39
|
And the stdout from "find ../../example" should not contain "conjur-example-0.0.1_suffix-1.aarch64.rpm"
|
40
40
|
|
41
|
-
Scenario: 'example' project can be published
|
41
|
+
Scenario: 'example' project can be published with amd64 architecture
|
42
42
|
Given I successfully run `env DEBUG=true GLI_DEBUG=true debify package -d ../../example -v 0.0.1-suffix example -- --post-install /distrib/postinstall.sh`
|
43
43
|
And I successfully run `env DEBUG=true GLI_DEBUG=true debify package -d ../../example --output rpm -v 0.0.1-suffix example -- --post-install /distrib/postinstall.sh`
|
44
44
|
When I successfully run `env DEBUG=true GLI_DEBUG=true debify publish -v 0.0.1-suffix -d ../../example 5.0 example`
|
45
|
+
|
46
|
+
# Scenario: 'example' project can be published with amd64 and arm64 architectures
|
47
|
+
Given I successfully run `env DEBUG=true GLI_DEBUG=true debify package -d ../../example -v 0.0.1-suffix example -- --post-install /distrib/postinstall.sh`
|
48
|
+
And I successfully run `env DEBUG=true GLI_DEBUG=true debify package -d ../../example --architecture="aarch64" -v 0.0.1-suffix example -- --post-install /distrib/postinstall.sh`
|
49
|
+
And I successfully run `env DEBUG=true GLI_DEBUG=true debify package -d ../../example --output rpm -v 0.0.1-suffix example -- --post-install /distrib/postinstall.sh`
|
50
|
+
And I successfully run `env DEBUG=true GLI_DEBUG=true debify package -d ../../example --output rpm --architecture="aarch64" -v 0.0.1-suffix example -- --post-install /distrib/postinstall.sh`
|
51
|
+
When I successfully run `env DEBUG=true GLI_DEBUG=true debify publish -v 0.0.1-suffix -d ../../example 5.0 example`
|
@@ -38,7 +38,7 @@ module Conjur::Debify
|
|
38
38
|
art_user, art_password = fetch_art_creds
|
39
39
|
end
|
40
40
|
|
41
|
-
# Publish deb package
|
41
|
+
# Publish AMD64 deb package
|
42
42
|
component = cmd_options[:component] || detect_component
|
43
43
|
deb_info = "#{distribution}/#{component}/amd64"
|
44
44
|
package_name = "conjur-#{project_name}_#{version}_amd64.deb"
|
@@ -53,10 +53,26 @@ module Conjur::Debify
|
|
53
53
|
deb_info: deb_info
|
54
54
|
)
|
55
55
|
|
56
|
+
# (Optional) Publish ARM64 deb package
|
57
|
+
unless Dir.glob('*_arm64.deb').empty?
|
58
|
+
deb_info = "#{distribution}/#{component}/arm64"
|
59
|
+
package_name = "conjur-#{project_name}_#{version}_arm64.deb"
|
60
|
+
publish_package(
|
61
|
+
publish_image: publish_image,
|
62
|
+
art_url: art_url,
|
63
|
+
art_user: art_user,
|
64
|
+
art_password: art_password,
|
65
|
+
art_repo: deb_art_repo,
|
66
|
+
package_name: package_name,
|
67
|
+
dir: dir,
|
68
|
+
deb_info: deb_info
|
69
|
+
)
|
70
|
+
end
|
71
|
+
|
56
72
|
# Publish RPM package
|
57
73
|
# The rpm builder replaces dashes with underscores in the version
|
58
74
|
rpm_version = version.tr('-', '_')
|
59
|
-
package_name = "conjur-#{project_name}-#{rpm_version}-1
|
75
|
+
package_name = "conjur-#{project_name}-#{rpm_version}-1.*.rpm"
|
60
76
|
rpm_art_repo = cmd_options['rpm-repo']
|
61
77
|
publish_package(
|
62
78
|
publish_image: publish_image,
|
data/lib/conjur/debify.rb
CHANGED
@@ -93,7 +93,7 @@ def detect_version
|
|
93
93
|
end
|
94
94
|
|
95
95
|
def git_files
|
96
|
-
files = (`git ls-files -z`.split("\x0") + %w[
|
96
|
+
files = (`git ls-files -z`.split("\x0") + %w[Gemfile.lock VERSION]).uniq
|
97
97
|
# Since submodule directories are listed, but are not files, we remove them.
|
98
98
|
# Currently, `conjur-project-config` is the only submodule in Conjur, and it
|
99
99
|
# can safely be removed because it's a developer-only tool. If we add another
|
@@ -154,7 +154,7 @@ command "clean" do |c|
|
|
154
154
|
unless perform_deletion
|
155
155
|
$stderr.puts "No --force, and this doesn't look like Jenkins. I won't actually delete anything"
|
156
156
|
end
|
157
|
-
@ignore_list = Array(cmd_options[:ignore]) + %w[
|
157
|
+
@ignore_list = Array(cmd_options[:ignore]) + %w[. .. .git]
|
158
158
|
|
159
159
|
def ignore_file?(f)
|
160
160
|
@ignore_list.find { |ignore| f.index(ignore) == 0 }
|
@@ -257,7 +257,7 @@ command "package" do |c|
|
|
257
257
|
c.flag [:'additional-files']
|
258
258
|
|
259
259
|
c.desc "Image name"
|
260
|
-
c.default_value "cyberark/
|
260
|
+
c.default_value "cyberark/ubuntu-ruby-builder"
|
261
261
|
c.flag [:i, :image]
|
262
262
|
|
263
263
|
c.desc "Image tag, e.g. 4.5-stable, 4.6-stable"
|
@@ -584,10 +584,10 @@ RUN touch /etc/service/conjur/down
|
|
584
584
|
'Image' => appliance_image.id,
|
585
585
|
'name' => project_name,
|
586
586
|
'Env' => %w[
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
587
|
+
CONJUR_AUTHN_LOGIN=admin
|
588
|
+
CONJUR_ENV=appliance
|
589
|
+
CONJUR_AUTHN_API_KEY=SEcret12!!!!
|
590
|
+
CONJUR_ADMIN_PASSWORD=SEcret12!!!!
|
591
591
|
] + global_options[:env],
|
592
592
|
'HostConfig' => {
|
593
593
|
'Binds' => [
|
@@ -734,10 +734,10 @@ command "sandbox" do |c|
|
|
734
734
|
'Image' => appliance_image.id,
|
735
735
|
'WorkingDir' => "/src/#{project_name}",
|
736
736
|
'Env' => %w[
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
737
|
+
CONJUR_AUTHN_LOGIN=admin
|
738
|
+
CONJUR_ENV=appliance
|
739
|
+
CONJUR_AUTHN_API_KEY=SEcret12!!!!
|
740
|
+
CONJUR_ADMIN_PASSWORD=SEcret12!!!!
|
741
741
|
] + global_options[:env]
|
742
742
|
}
|
743
743
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjur-debify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.3.pre.
|
4
|
+
version: 3.0.3.pre.2005
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CyberArk Software, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|