Open dd84ai opened 5 hours ago
list containers, import setttings, stop/remove old one, create and start new one with exactly same settings https://pkg.go.dev/github.com/docker/docker/client#Client.ContainerList https://pkg.go.dev/github.com/docker/docker/client#Client.ContainerCreate the script should be able to be used with DOCKER_HOST=ssh config overrides
Then in CI just build the image with workflow number and tagged as production/staging and etc and let it be deployed automatically by invoking the script above
This task will be important for operating nicer future Dark relay project
list containers, import setttings, stop/remove old one, create and start new one with exactly same settings https://pkg.go.dev/github.com/docker/docker/client#Client.ContainerList https://pkg.go.dev/github.com/docker/docker/client#Client.ContainerCreate the script should be able to be used with DOCKER_HOST=ssh config overrides
Then in CI just build the image with workflow number and tagged as production/staging and etc and let it be deployed automatically by invoking the script above