conjur-debify 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dockerignore +2 -0
- data/CHANGELOG.md +4 -0
- data/Dockerfile +9 -0
- data/jenkins.sh +10 -0
- data/lib/conjur/debify/version.rb +1 -1
- data/lib/conjur/debify.rb +11 -4
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddccb9d6f39996c53c34bea3dc5e877271cb0400
|
4
|
+
data.tar.gz: 6378ea97813d23a8f4d5b8f1412749db6fdb52be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33d1e81e5fdf92e94ecfba6faac21967adc69339e204e0982221394c9b6d75a2925ea0ae5df66a472f6db7729be241f64ed97744a93caebb46149e9b61c7b1c6
|
7
|
+
data.tar.gz: 93ca403108dc2b195a9f26006a55de6c7a85470381810236ce32f6bfe64d43098067314b5ab8736e60171e413d74bdb238b7fb154ca4f38ba3d2a155182f3a8f
|
data/.dockerignore
ADDED
data/CHANGELOG.md
CHANGED
data/Dockerfile
ADDED
data/jenkins.sh
CHANGED
@@ -4,3 +4,13 @@ gem install -N bundler
|
|
4
4
|
bundle
|
5
5
|
rm -rf features/reports
|
6
6
|
cucumber --format pretty --format junit --out features/reports || true
|
7
|
+
|
8
|
+
if [ "$GIT_BRANCH" == "origin/master" ]; then
|
9
|
+
TAG=$(cat lib/conjur/debify/version.rb | grep -o '".*"' | tr -d '"')
|
10
|
+
|
11
|
+
docker build -t debify .
|
12
|
+
docker tag -f debify registry.tld/debify:$TAG
|
13
|
+
docker tag -f debify registry.tld/debify:latest
|
14
|
+
docker push registry.tld/debify:$TAG
|
15
|
+
docker push registry.tld/debify:latest
|
16
|
+
fi
|
data/lib/conjur/debify.rb
CHANGED
@@ -621,7 +621,6 @@ command "publish" do |c|
|
|
621
621
|
|
622
622
|
dir = cmd_options[:dir] || '.'
|
623
623
|
dir = File.expand_path(dir)
|
624
|
-
|
625
624
|
raise "Directory #{dir} does not exist or is not a directory" unless File.directory?(dir)
|
626
625
|
|
627
626
|
Dir.chdir dir do
|
@@ -637,9 +636,17 @@ command "publish" do |c|
|
|
637
636
|
Conjur::Config.load
|
638
637
|
Conjur::Config.apply
|
639
638
|
conjur = Conjur::Authn.connect nil, noask: true
|
640
|
-
|
641
|
-
|
642
|
-
|
639
|
+
|
640
|
+
username_var = 'artifactory/users/jenkins/username'
|
641
|
+
password_var = 'artifactory/users/jenkins/password'
|
642
|
+
|
643
|
+
if conjur.variable('ci/artifactory/users/jenkins/username').exists? # we're on new conjurops
|
644
|
+
username_var.insert(0, 'ci/')
|
645
|
+
password_var.insert(0, 'ci/')
|
646
|
+
end
|
647
|
+
|
648
|
+
art_username = conjur.variable(username_var).value
|
649
|
+
art_password = conjur.variable(password_var).value
|
643
650
|
|
644
651
|
options = {
|
645
652
|
'Image' => publish_image.id,
|
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: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Gilpin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -116,10 +116,12 @@ executables:
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
+
- .dockerignore
|
119
120
|
- .gitignore
|
120
121
|
- .project
|
121
122
|
- .rvmrc
|
122
123
|
- CHANGELOG.md
|
124
|
+
- Dockerfile
|
123
125
|
- Gemfile
|
124
126
|
- LICENSE.txt
|
125
127
|
- README.md
|