如何为WordPress网站创建CI/CD管道?

发布于 2025-02-07 02:39:00 字数 1241 浏览 3 评论 0原文

我有以下设置:

  • ubuntu上的Mac osx远程云服务器上的本地开发环境
  • 22.04
  • gitlab for版本控制

如何获得我在本地开发的NUXT.JS项目等类似的工作流程,然后将其推向Gitlab,然后获得最新的提交自动推到登台服务器(在我的情况下为远程云服务器)?

我已经找到了有关此主题的以下资源,但是我不确定在为WordPress项目构建CI/CD管道方面的常见/最佳实践是什么:

wordpress ci/cd管道

使用Docker在WordPress上连续交付

如何将数据库放在git(版本控制)下?

docker是我要寻找的解决方案吗?还是我需要其他工具来创建此管道?

我找到了本教程,但我想确保一般方法是正确的: https://www.digitalocean.com/community/community/tutorials/how-to-to-to-to-automate-wordpress-deployments-with-with-digitalocean--digitalocean-and-buddy

谢谢您的帮助呢

I have the following setup:

  • Local development environment on Mac OSX
  • Remote cloud server on Ubuntu 22.04
  • Gitlab for version control

How can I get a similar workflow like my Nuxt.js projects, where I develop locally, push to Gitlab and then have the latest commit automatically pushed to a staging server (the remote cloud server in my case)?

I have found the following resources regarding this topic but I'm not sure what the common / best practice is in building a CI/CD pipeline for Wordpress projects:

Wordpress CI/CD pipeline

Continuous Delivery on Wordpress using Docker

How can I put a database under git (version control)?

Is Docker the solution I am looking for or do I need other tools to create this pipeline?

I found this tutorial but I wanted to make sure the general approach is correct: https://www.digitalocean.com/community/tutorials/how-to-automate-wordpress-deployments-with-digitalocean-and-buddy

Thank you for your help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苦行僧 2025-02-14 02:39:00

我与Jenkins,Gitlab,Docker,K8S创建CICD。
在Jenkins中,您可以使用Shell替代方案进行管道。

I create a CICD with jenkins, gitlab, docker, k8s.
in jenkins, you can use shell alternative for pipeline.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文