gz_release 0.0.5 → 0.0.6
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 +8 -8
- data/lib/gz_release/tasks.rb +19 -0
- data/lib/gz_release/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTM1NmY3OTkyNzJkY2IzOWZmZTIyOGRmOWJkYTI1YzFjNmIxMjNkYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGE3YzZjMzIzM2FmNDE0ZjNhZTNmNDhjYzdhOGE2MzZiM2YwMzc4OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDVlNjdhZTY0ZGIyZTViZDkyOWRhNjEzMzk1MWE4YWYxZTUwYzU3OTgzMTI4
|
10
|
+
YTEwOWRiMzI0OTBhNTg1MzExMWI1OTUzYTkxYzgzMzc4NmRhY2RhMjYzZTg0
|
11
|
+
ZjA3NTllODE3MjkwZDhjMzFiMzQyZjk1NjU0YWQxMWVmOTE3MWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWE5ZGFlYzAzMWNhODhkZmI2OTA5MzQxNjg4Mzg5ZGYwYjE1ZjgxNTgwYjk3
|
14
|
+
ODYwOGI2MzdkNzExM2JjZjAyNjY1NjdjNjJhODczNmFmZjc1YjcyYjQ0Y2I1
|
15
|
+
YzdlZTk1ZDgzNWY1NDBlZTVmYTg5ZTM0YWQ5M2M4MGRmZWZmNDE=
|
data/lib/gz_release/tasks.rb
CHANGED
@@ -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)
|
data/lib/gz_release/version.rb
CHANGED