darklab8 / fl-darkbot

discord bot to freelancer discovery community for player bases, players and forum messages tracking with alerting.
https://darklab8.github.io/fl-darkbot/
Other
4 stars 1 forks source link

Automate CI CD #38

Open dd84ai opened 5 hours ago

dd84ai commented 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

dd84ai commented 5 hours ago

This task will be important for operating nicer future Dark relay project