conjur-debify 3.0.3.pre.1971 → 3.0.3.pre.1981
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/CHANGELOG.md +1 -0
- 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 +1 -1
- 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: f59f248642626ad2fd484fe7ce73a98a26def7f2218f73e740e798f225d27f94
|
|
4
|
+
data.tar.gz: dc88be5619ec05aea79b51e3e1e6e2855f39cf7f9111dc350567c12a9e33791e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d1ce19bd3da4beab66c679b11bb1aa6e4d656c4b19735719a9ec9ca703ad4915b97d56aaf5a5f6791f8cfaa807800cc5a6b430fd56d93a097193f5280049b05
|
|
7
|
+
data.tar.gz: c98a222617ee803351fd4180edd3981b089dba989aa4291890985961d2991896f814e5fbbe01f19eae0b0d58cdc752df7c4a9004d5a059c57720c5092953929c
|
data/CHANGELOG.md
CHANGED
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-1981
|
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
|
@@ -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"
|
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.1981
|
|
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-
|
|
11
|
+
date: 2023-11-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gli
|