fix(deploy) post deploy cmds
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Moritz 2023-04-18 19:05:46 +02:00
parent 343b2bfb91
commit b2739dcdf2
2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func RunCmdRemote(cl *dockerClient.Client, app config.App, abraSh, serviceName,
filters := filters.NewArgs()
filters.Add("name", fmt.Sprintf("^%s_%s", app.StackName(), serviceName))
targetContainer, err := containerPkg.GetContainer(context.Background(), cl, filters, true)
targetContainer, err := containerPkg.GetContainer(context.Background(), cl, filters, false)
if err != nil {
return err
}

View File

@ -229,6 +229,7 @@ func PostCmds(cl *dockerClient.Client, app config.App, commands string) error {
logrus.Debugf("running command %s %s within the context of %s_%s", cmdName, parsedCmdArgs, app.StackName(), targetServiceName)
Tty = true
if err := RunCmdRemote(cl, app, abraSh, targetServiceName, cmdName, parsedCmdArgs); err != nil {
return err
}