capistrano_dockerbuild 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +4 -0
- data/capistrano-docker-build.gemspec +1 -1
- data/lib/capistrano/tasks/dockerbuild.rake +27 -13
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81dad76f8407f443b7852ff62460d8ba1cf1ac70
|
4
|
+
data.tar.gz: db2a10539bfab10d6a880e47edbbe7f4db80f14c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0663fb519f5606ec2fa0089e2fc98642d1aa5b650aa0b2b3363f2513d86597f62abd7f05638abd42c39c48d8cade6f64241c4973422a07ed224c6ed1f17ac7c7
|
7
|
+
data.tar.gz: 120bc578acb45d18bc84132b3cb0decf10941453bd1f4026e3d5eef6a538d13c4bdb61333588d1c3c57201be968165316ded28214b508cfcdaf369da3b7c5535
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# capistrano_dockerbuild 1.x Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file, in reverse chronological order.
|
4
|
+
|
5
|
+
**capistrano_dockerbuild strives to follow [SemVer](http://semver.org)**, similar to the Ruby on Rails project. For a `X.Y.Z` release:
|
6
|
+
|
7
|
+
* `Z` indicates bug fixes only; no breaking changes and no new features, except as necessary for security fixes.
|
8
|
+
* `Y` is bumped when we add new features. Occasionally a `Y` release may include small breaking changes. We will notify via CHANGELOG entries and/or deprecation notices if there are breaking changes.
|
9
|
+
* `X` is incremented for significant breaking changes. This is reserved for special occasions, like a complete rewrite.
|
10
|
+
|
11
|
+
**capistrano_dockerbuild has no current release cadence. That stuff is for adults!** At the moment, this project is a one-man-show. I release stuff when I damn well please, when it pleases me the most. If you don't like that, speak up and become a contributor. If you do that, we can change this line in this file to something less antagonistic.
|
12
|
+
|
13
|
+
### More Caveat Emptor: I'm not dedicating any real time here just yet
|
14
|
+
Until this project becomes more meaningfully maintained, the following update notes will be updated as deemed fit and/or by chance of my mind recognizing documentation significance. If you include this code in your project, your crap may break whenever I happenstantially push things that also makes my own crap break. I'll probably be working to fix it soon'ish, but also maybe I'll spend the weekend eating tacos and sleeping instead. The risk is all yours.
|
15
|
+
|
16
|
+
|
17
|
+
# Update notes
|
18
|
+
|
19
|
+
## [`1.1.3`] (2018-07-16)
|
20
|
+
Removes a bunch of things left over from debugging. Some cause real issues with deploys. This probably won't be the last.
|
data/README.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# CAVEAT EMPTOR
|
2
|
+
|
3
|
+
This is very much a work in progress. It mostly works for my needs, but I'm finding and fixing issues almost every week. Ruthless criticism is currently encouraged. Please submit your bitchiness to: (/dev/null; cc: [github_issue](https://github.com/eshork/capistrano_dockerbuild/issues/new)). 🌮
|
4
|
+
|
1
5
|
# capistrano_dockerbuild
|
2
6
|
|
3
7
|
Docker image creation, tagging, and repository tasks for Capistrano v3
|
@@ -168,8 +168,8 @@ namespace :docker do
|
|
168
168
|
promote_image_tag = fetch(:docker_build_promote_image, nil)
|
169
169
|
image_name = DockerImage.from_str(promote_image_tag)
|
170
170
|
image_name = DockerImage.new(image_name.repo ? image_name.repo : docker_repo_url,
|
171
|
-
|
172
|
-
|
171
|
+
image_name.name ? image_name.name : docker_build_image,
|
172
|
+
image_name.tag ? image_name.tag : docker_build_tag)
|
173
173
|
promote_tag = image_name.to_s
|
174
174
|
return promote_tag
|
175
175
|
end
|
@@ -253,20 +253,34 @@ namespace :docker do
|
|
253
253
|
task :set_current_revision => 'deploy:set_current_revision'
|
254
254
|
|
255
255
|
task :get_docker_build_image_id => :set_current_revision do
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
256
|
+
if roles(:docker_build).empty?
|
257
|
+
run_locally do
|
258
|
+
docker_build_image_tags.each do |image_tag|
|
259
|
+
docker_build_image_id = capture docker_cmd, :image, :ls, '-q', image_tag
|
260
|
+
unless docker_build_image_id.empty?
|
261
|
+
set(:docker_build_image_id, docker_build_image_id)
|
262
|
+
break
|
263
|
+
end
|
263
264
|
end
|
264
265
|
end
|
265
|
-
|
266
|
-
|
267
|
-
|
266
|
+
else
|
267
|
+
on roles(:docker_build).first do # |buildremote|
|
268
|
+
docker_build_image_tags.each do |image_tag|
|
269
|
+
docker_build_image_id = capture docker_cmd, :image, :ls, '-q', image_tag
|
270
|
+
unless docker_build_image_id.empty?
|
271
|
+
set(:docker_build_image_id, docker_build_image_id)
|
272
|
+
break
|
273
|
+
end
|
274
|
+
end
|
268
275
|
end
|
269
276
|
end
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
unless fetch(:docker_build_image_id)
|
281
|
+
fatal 'unable to discern image id'
|
282
|
+
raise 'missing image id'
|
283
|
+
end
|
270
284
|
end
|
271
285
|
|
272
286
|
|
@@ -308,7 +322,7 @@ namespace :docker do
|
|
308
322
|
docker_build_image_tags.each do |local_tag|
|
309
323
|
repo_tag = docker_repo_tag(local_tag)
|
310
324
|
next unless repo_tag
|
311
|
-
|
325
|
+
on roles(:docker_build).first do # |buildremote|
|
312
326
|
execute docker_cmd, :tag,
|
313
327
|
fetch(:docker_build_image_id),
|
314
328
|
repo_tag
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano_dockerbuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Shorkey
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- ".gitignore"
|
67
67
|
- ".rspec"
|
68
68
|
- ".rubocop.yml"
|
69
|
+
- CHANGELOG.md
|
69
70
|
- Gemfile
|
70
71
|
- LICENSE.txt
|
71
72
|
- README-deploy-compose.md
|