docker-stack 2__py3-none-any.whl → 2.0.1__py3-none-any.whl

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.
docker_stack/cli.py CHANGED
@@ -639,10 +639,9 @@ class DockerStack:
639
639
  )
640
640
  return
641
641
 
642
- _, cmd = self.docker.config.increment(stack_name, rendered_content, labels=labels, stack=stack_name)
643
- if not cmd.isNop():
644
- self.commands.append(cmd)
645
-
642
+ # Manager-backed deploys must stay on the manager stack APIs. Hitting
643
+ # direct daemon config endpoints here breaks GitHub OIDC workflows,
644
+ # which are intentionally restricted away from generic daemon access.
646
645
  if manager_deploy and not with_registry_auth:
647
646
  self.commands.append(
648
647
  CallbackCommand(
@@ -657,6 +656,10 @@ class DockerStack:
657
656
  )
658
657
  return
659
658
 
659
+ _, cmd = self.docker.config.increment(stack_name, rendered_content, labels=labels, stack=stack_name)
660
+ if not cmd.isNop():
661
+ self.commands.append(cmd)
662
+
660
663
  cmd = ["docker", "stack", "deploy", "-c", str(rendered_filename), stack_name]
661
664
  if with_registry_auth:
662
665
  cmd.insert(3, "--with-registry-auth")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docker-stack
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: CLI for deploying and managing Docker stacks.
5
5
  Home-page: https://github.com/mesudip/docker-stack
6
6
  Author: Sudip Bhattarai
@@ -1,5 +1,5 @@
1
1
  docker_stack/__init__.py,sha256=22W2926fX4sMA1POE1EligVb05cbmP8I6rnacEUmaFs,879
2
- docker_stack/cli.py,sha256=_90wyc2V-8LGpOHWIL0sHjh2hqL-i4hOLw8f4C4dfbY,50338
2
+ docker_stack/cli.py,sha256=fsjXjaGFBXi-uYtAm5jcYSPg-yafaVsENsjKK9o_55g,50570
3
3
  docker_stack/command_runner.py,sha256=mNaUAVKtrJbji_5ARVPLKhc92avqllNKrVQj1A6S0dA,1252
4
4
  docker_stack/compose.py,sha256=_fAVesjyW5ecid46sYYhcu02yF1vqknDSCFYflJPDOE,534
5
5
  docker_stack/docker_objects.py,sha256=6FYi3Cq5qTkz2XgRrb_DGy2tgX8uoagib6bZD_Bs3W4,10922
@@ -12,8 +12,8 @@ docker_stack/markers.py,sha256=gqStnr0tNWZ1kzqvREc2jVQVQrevheShgJtL5QzSx4g,2388
12
12
  docker_stack/merge_conf.py,sha256=Pmsabcgf3SDyaWvf2OLsBPodzEqsvOIjj9xzn_qWXH0,1917
13
13
  docker_stack/registry.py,sha256=sWC1J9JDIrcYyhei1POYCZHJ0xUCKC2pveisSHMgYsQ,9036
14
14
  docker_stack/url_parser.py,sha256=Sk8GQE0nEiwCkijp1OltP2AfgtKEmM2hybcH_rBhfiI,6824
15
- docker_stack-2.0.0.dist-info/METADATA,sha256=7uB1n03OeTNV4UedOplrmjuot_gycHSb3iZBeWmHAAY,8753
16
- docker_stack-2.0.0.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
17
- docker_stack-2.0.0.dist-info/entry_points.txt,sha256=mpe2RwIguARsosXIUBQEN2pKU53URqZCh2S4ATwDFL4,55
18
- docker_stack-2.0.0.dist-info/top_level.txt,sha256=zT6TPL54cLrt9LO_MNkhEpGGOmsoe2HV6Na5Ohy3_2c,13
19
- docker_stack-2.0.0.dist-info/RECORD,,
15
+ docker_stack-2.0.1.dist-info/METADATA,sha256=paPXWpHyDIZ8aenL9IVDHPNQeFFfatH6KBxANkRcTYA,8753
16
+ docker_stack-2.0.1.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
17
+ docker_stack-2.0.1.dist-info/entry_points.txt,sha256=mpe2RwIguARsosXIUBQEN2pKU53URqZCh2S4ATwDFL4,55
18
+ docker_stack-2.0.1.dist-info/top_level.txt,sha256=zT6TPL54cLrt9LO_MNkhEpGGOmsoe2HV6Na5Ohy3_2c,13
19
+ docker_stack-2.0.1.dist-info/RECORD,,