dry-stack 0.1.37 → 0.1.38
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 +4 -4
- data/lib/dry-stack/command_swarm_deploy.rb +3 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d5c24706879ba8039124e73ec2ef6392272606ee7808a4047729112fafc5cba
|
4
|
+
data.tar.gz: 66de8ba13b56aa380422e63970612a2c00c2884b83e8832cb1a6c2f07e0eba9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa81e8b07509c80c8ae1665bfdf3bd57e77a9c01738d16d6ccd710f1f5c0b2147b230ef4ebea5852a58bb3e5ac686e02b5dd24c141dcc0b0ac925520c18a48e
|
7
|
+
data.tar.gz: 1130f120f4e05e32a00bbffc7d1dc881d41460bef4d44aeefee6edf68f69a58ed0652883c2983ea20c567a5ee95397c06aaafdcbd7f45d3e1b2768e447f61a7c
|
@@ -42,7 +42,8 @@ Dry::CommandLine::COMMANDS[:swarm_deploy] = Class.new do
|
|
42
42
|
begin
|
43
43
|
deploy_status = 'unknown'
|
44
44
|
extra += ' --resolve-image=never' unless extra.include? '--resolve-image'
|
45
|
-
|
45
|
+
deploy_command = "docker --context #{name} stack deploy -c - --with-registry-auth #{extra} #{stack.name}"
|
46
|
+
exec_i deploy_command, yaml
|
46
47
|
# Hide messages like:
|
47
48
|
# Error response from daemon: rpc error: code = InvalidArgument desc = config 'grafana_dashboards_yaml-206a34dc77dc394d78a207c7abde327d' is in use by the following service: grafana_grafana
|
48
49
|
conf_list = `docker config ls --filter label=com.docker.stack.namespace=#{stack.name} --format \"{{.ID}}\"`
|
@@ -61,6 +62,7 @@ Dry::CommandLine::COMMANDS[:swarm_deploy] = Class.new do
|
|
61
62
|
data = {
|
62
63
|
deploy_host: endpoint,
|
63
64
|
docker_context: name,
|
65
|
+
deploy_command:,
|
64
66
|
stack_name: stack.name,
|
65
67
|
deploy_status:,
|
66
68
|
stack: YAML.load(yaml, aliases: true)
|
data/lib/version.rb
CHANGED