Automate Your PHP Project Deployment with cPanel and CICD
ฝัง
- เผยแพร่เมื่อ 9 ธ.ค. 2024
- Tired of manually deploying your PHP projects to cPanel? This video will show you how to set up a continuous integration and continuous deployment (CICD) pipeline to automate the process. You'll learn how to:
Connect your Git repository to cPanel
Configure a CI/CD pipeline
Automate code testing, builds, and deployments
Save time and effort
Reduce deployment errors
This video is perfect for developers who want to streamline their workflow and improve their deployment process.
yml Code
name: Publish Website to Web Hosting
on:
push:
branches:
main
jobs:
deploy:
name: Deploy website every commit
runs-on: ubuntu-latest
steps:
name: Get latest code
uses: actions/checkout@v2
name: FTP-Deploy-Action
uses: SamKirkland/FTP-Deploy-Action@4.3.2
with:
server: *****************
username: *************
password:*************
protocol: ftps
port: 21
local-dir: './'
very helpful I like the speed of your execution !
Glad to hear that!
Tnx it's very helpfull