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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 183750f5e11ef2f53a84358af536bf0f45071ef2
4
- data.tar.gz: 80ad788188c53f46aa75e6a0a53be079aa73753c
3
+ metadata.gz: ddccb9d6f39996c53c34bea3dc5e877271cb0400
4
+ data.tar.gz: 6378ea97813d23a8f4d5b8f1412749db6fdb52be
5
5
  SHA512:
6
- metadata.gz: 1044d35a96eb810c5f54ec03106c48ab5456d9e01395d0aff1447246e71d6e235d959b0fe54f4a2750205c3cf074e96873c24dd679a02b0b8460286f7e81a961
7
- data.tar.gz: bcf0d6083a7f0c32e72138b87d6fb8b66d71e4c8bb9c4ef87acba1807a2c437d64cf9619cdba7c451a5ede060b0ef22ae2d3eea25ea5b37dab9e147f698c657a
6
+ metadata.gz: 33d1e81e5fdf92e94ecfba6faac21967adc69339e204e0982221394c9b6d75a2925ea0ae5df66a472f6db7729be241f64ed97744a93caebb46149e9b61c7b1c6
7
+ data.tar.gz: 93ca403108dc2b195a9f26006a55de6c7a85470381810236ce32f6bfe64d43098067314b5ab8736e60171e413d74bdb238b7fb154ca4f38ba3d2a155182f3a8f
data/.dockerignore ADDED
@@ -0,0 +1,2 @@
1
+ Dockerfile
2
+ Gemfile.lock
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.5.2
2
+
3
+ * Use new conjurops variables in `publish` command, fall back to old conjurops
4
+
1
5
  # 1.5.1
2
6
 
3
7
  * Fix the description of the `--version` argument to indicate that the version now comes from the `VERSION` file.
data/Dockerfile ADDED
@@ -0,0 +1,9 @@
1
+ FROM ruby:2.2.6
2
+
3
+ RUN mkdir -p /src
4
+ WORKDIR /src
5
+
6
+ COPY . /src/
7
+ RUN bundle
8
+
9
+ ENTRYPOINT ["bundle", "exec", "debify"]
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
@@ -1,5 +1,5 @@
1
1
  module Conjur
2
2
  module Debify
3
- VERSION = "1.5.1"
3
+ VERSION = "1.5.2"
4
4
  end
5
5
  end
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
- art_username = conjur.variable('artifactory/users/jenkins/username').value
642
- art_password = conjur.variable('artifactory/users/jenkins/password').value
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.1
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: 2016-10-04 00:00:00.000000000 Z
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