gz_release 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjMzZjhmNjM1ZmE5MGQ0NjdjZDBkODk0MThlNGQwZjVkMmFhMWIzYQ==
4
+ OTM1NmY3OTkyNzJkY2IzOWZmZTIyOGRmOWJkYTI1YzFjNmIxMjNkYw==
5
5
  data.tar.gz: !binary |-
6
- MzhhYzhlOTVkMDQ2YjE5YmNjZDUyOTJiYzEyZDYzMjVlZjcyYWY5Yw==
6
+ ZGE3YzZjMzIzM2FmNDE0ZjNhZTNmNDhjYzdhOGE2MzZiM2YwMzc4OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODFkNmQxNmJiMDY3ZjVhYzQyYjA0NjA4YTNlZDYzMWQzNGUzYWQ0MGIzMWY2
10
- YmY4M2FmYTQ3ZmQ1NDFmM2EyNDliYWI4NTM1MWVhNjNjOTg0ODkxN2NjMGEz
11
- MjM1ZDUwNGJkMmUwOGI2NzE3ODcwNzQxMWIwOTk0M2U5OTUyYjM=
9
+ NDVlNjdhZTY0ZGIyZTViZDkyOWRhNjEzMzk1MWE4YWYxZTUwYzU3OTgzMTI4
10
+ YTEwOWRiMzI0OTBhNTg1MzExMWI1OTUzYTkxYzgzMzc4NmRhY2RhMjYzZTg0
11
+ ZjA3NTllODE3MjkwZDhjMzFiMzQyZjk1NjU0YWQxMWVmOTE3MWM=
12
12
  data.tar.gz: !binary |-
13
- YjY5ZjhkYWI2MmQ4ZTdjMDQ4NTNjNzFkZWY0MzZkZjA1ZjEyMDYwZmJhNzU4
14
- MDZiNTI3N2MyNTI5ZWYyNjFiMDkzNmQ2NDcxNzg3NTljNTlhZjcyMGY1YWU4
15
- OWQ3YjllYzZlMzFkYWU2MmZlYTRjNWE1ODcxMjljMjdjZDc2NTA=
13
+ OWE5ZGFlYzAzMWNhODhkZmI2OTA5MzQxNjg4Mzg5ZGYwYjE1ZjgxNTgwYjk3
14
+ ODYwOGI2MzdkNzExM2JjZjAyNjY1NjdjNjJhODczNmFmZjc1YjcyYjQ0Y2I1
15
+ YzdlZTk1ZDgzNWY1NDBlZTVmYTg5ZTM0YWQ5M2M4MGRmZWZmNDE=
@@ -53,6 +53,9 @@ module GzRelease
53
53
  desc 'Creates latest tag for the docker image'
54
54
  task(:latest){tag_latest}
55
55
 
56
+ desc 'Creates release tag for the docker image'
57
+ task(:release){tag_release}
58
+
56
59
  desc 'Creates timestamp tag for the docker image and git repo'
57
60
  task(:timestamp){tag_timestamp}
58
61
  end
@@ -67,6 +70,9 @@ module GzRelease
67
70
  desc 'Pushes docker image tagged as latest'
68
71
  task(latest: :'release:tag:latest'){push_latest}
69
72
 
73
+ desc 'Pushes docker image tagged as release'
74
+ task(release: :'release:tag:release'){push_release}
75
+
70
76
  desc 'Pushes docker image and git tag tagged by the timestamp.'
71
77
  task(timestamp: :'release:tag:timestamp'){push_timestamp}
72
78
  end
@@ -193,6 +199,19 @@ module GzRelease
193
199
  "#{image_name}:latest"
194
200
  end
195
201
 
202
+ # Release
203
+ def tag_release
204
+ tag(image_release)
205
+ end
206
+
207
+ def push_release
208
+ push(image_release)
209
+ end
210
+
211
+ def image_release
212
+ "#{image_name}:release"
213
+ end
214
+
196
215
  # Timestamp
197
216
  def tag_timestamp
198
217
  git_tag(timestamp)
@@ -1,4 +1,4 @@
1
1
  # Version
2
2
  module GzRelease
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gz_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Madsen