rops 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/rops +4 -4
- data/lib/deployer.rb +2 -2
- 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: 78cb1cdfa255b9f24c33cce2dafaaad811526e980fb28df95939024e04ec8324
|
4
|
+
data.tar.gz: c20c8891b751fa8d7a75103d3ed4516920fbbb7ac91e52020f8a35cdb3fddbe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2add816686a5d4a0e2a94ca1d342af659ba0963e8df4fb2b7e167a4d774ce3696697bfd9467793bb65c14b7c58285516ba6c717891c9a5c58257bc23bf85d7c7
|
7
|
+
data.tar.gz: 1697452d48bbd3cd5ed1501380ba5cb7956474b0aca3b4c2c0a15b2d86d28fa592a2f7a5baf3958e1411d2d5cf81ad30886fe3da21baf6735fb61692b6832049
|
data/Gemfile.lock
CHANGED
data/bin/rops
CHANGED
@@ -150,8 +150,8 @@ module Record360
|
|
150
150
|
end
|
151
151
|
|
152
152
|
class BuildImage < Dry::CLI::Command
|
153
|
-
desc "Build the docker image"
|
154
|
-
argument :branch, desc: "Branch (or commit) to build"
|
153
|
+
desc "Build the docker image"
|
154
|
+
argument :branch, desc: "Branch (or commit) to build"
|
155
155
|
include Common
|
156
156
|
|
157
157
|
def call(**)
|
@@ -222,10 +222,10 @@ module Record360
|
|
222
222
|
end
|
223
223
|
|
224
224
|
if $stdout.tty?
|
225
|
-
print "Deploy #{branch} (#{image_tag}) to #{context}? (y/N): "
|
225
|
+
print "Deploy #{deployer.branch} (#{image_tag}) to #{context}? (y/N): "
|
226
226
|
exit(-1) unless $stdin.gets&.chomp == 'y'
|
227
227
|
else
|
228
|
-
puts "Deploying #{branch} (#{image_tag}) to #{context}"
|
228
|
+
puts "Deploying #{deployer.branch} (#{image_tag}) to #{context}"
|
229
229
|
end
|
230
230
|
|
231
231
|
deployer.deploy!(context)
|
data/lib/deployer.rb
CHANGED
@@ -44,8 +44,8 @@ class Deployer
|
|
44
44
|
|
45
45
|
short_id = @commit[0, 8]
|
46
46
|
@image_tag = "g#{short_id}"
|
47
|
-
if
|
48
|
-
@image_tag += "-#{branch}"
|
47
|
+
if (@branch != default_branch) && !@branch.start_with?(short_id)
|
48
|
+
@image_tag += "-#{@branch}"
|
49
49
|
end
|
50
50
|
images.each do |image|
|
51
51
|
image.commit = commit
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Sloan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-cli
|