From 5e02c2e3d39a7d757ac00187e83d3d72d5128830 Mon Sep 17 00:00:00 2001 From: "artem.borodkin@gmail.com" Date: Tue, 8 Oct 2024 21:57:18 +0300 Subject: [PATCH] update --- Gemfile.lock | 2 +- README.md | 2 +- lib/dry-stack/command_swarm_deploy.rb | 2 +- lib/version.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index e5b1fea..378e9fd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dry-stack (0.1.18) + dry-stack (0.1.19) GEM remote: https://rubygems.org/ diff --git a/README.md b/README.md index d998c04..3ea6012 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This gem allows ... cat simple_stack.drs | dry-stack -e to_compose | docker stack deploy -c - simple_stack $ dry-stack -Version: 0.1.18 +Version: 0.1.19 Usage: dry-stack -s stackfile [options] COMMAND cat stackfile | dry-stack COMMAND diff --git a/lib/dry-stack/command_swarm_deploy.rb b/lib/dry-stack/command_swarm_deploy.rb index 182d633..9a5ab3e 100644 --- a/lib/dry-stack/command_swarm_deploy.rb +++ b/lib/dry-stack/command_swarm_deploy.rb @@ -35,7 +35,7 @@ def run(stack, params, args, extra) # system " echo \"#{yaml.gsub("`", '\\\`')}\" | docker stack deploy -c - #{stack.name} --prune --resolve-image changed" # --prune --resolve-image changed - exec_i "docker stack deploy -c - --with-registry-auth #{extra}" #{stack.name} , yaml + exec_i "docker stack deploy -c - --with-registry-auth #{extra} #{stack.name}" , yaml system "docker config rm $(docker config ls --filter label=com.docker.stack.namespace=#{stack.name} --format \"{{.ID}}\")" exec_i "docker config rm #{stack.name}_readme || echo 'failed to remove config #{stack.name}_readme'" diff --git a/lib/version.rb b/lib/version.rb index 98e0ce4..37a99ad 100644 --- a/lib/version.rb +++ b/lib/version.rb @@ -1,5 +1,5 @@ module Dry class Stack - VERSION = '0.1.18' + VERSION = '0.1.19' end end