TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Automate Changes in Multiple Projects

2 点作者 YaBa超过 1 年前
I have some containers running and part of them are based in the first project, let&#x27;s call it &quot;Server1&quot;.<p>Since there was no planning (these are my personal projects), Server2, Server3 and Server4, are basically copy&#x2F;paste from Server1 with a few changes in the code. This leads to me having multiple Dockerfile and other files, being duplicated among the projects with minor changes according to the project itself.<p>This weekend I&#x27;ve updated Server1 with a new Docker image and fixed a bug in one of the bash scripts used by the app, since it worked as expected, I had to manually replicate the changes on Server2, 3, 4 and so on...<p>Building and deployment are automated, no problem with this, I&#x27;m using Gitea Actions &amp; Portainer hooks, however, I would like to hear some suggestions on how to automate this manual labor also, not only the Dockerfile itself, but also the bash scripts, etc, basically, all those common files that all the apps share.<p>Thank you.

1 comment

deoxykev超过 1 年前
I use ansible to deploy and sync scripts, services, etc. I think it would work well for you use case as well.
评论 #39191265 未加载