pasang iklan langsung di iklan baris ini melalui email silahkan kirim iklan /artikel anda ke email berikut:
1.ipoenkcakep.online@blogger.com 2.vihu424lesa@post.wordpress.com
download iklan baris android .apk klik DISINI
Mau nambang bitcoin ?? Dapatkan Bitcoin gratis per jam daftar
DISINI

Free Of Cost Downloads

Free Of Cost Downloads


How To Deploy Private GitHub Repository To Any Hosting - CI/CD

Posted: 04 Sep 2021 01:10 AM PDT

Github to webhosting, automatic deployment, ci/cd deployment

GitHub to Web Hosting 

You can deploy private GitHub repo to cPanel, Hostinger, or any Web Hosting Manager. Automatic deployment for your CI/CD. This method will work for that. I'm a web developer by profession, I face this issue a lot until I find this method.

Deploying while cPanel Git version control you will face the issue "GitHub cannot access private repository" while submitting Github private repo unless until you setup a private key of cPanel to your GitHub Deploy keys.

Here you don't need to have SSH access or any root access for this method. All you need is an FTP ACCOUNT.

Let's start

In this method, I will be using the Deployment of GitHub Private Repo to cPanel.

1. You have to create an FTP account.
You need to setup the following details.
Log In: it will be the username
Domain: it will be your domain name.
Password: Write a password whatever you like. But keep it safe we will use re-use it, in github.
 
Create an FTP account

2
. In FTP Accounts, click on Configuration FTP Client, to get FTP Username and FTP Server Address.

FTP Accounts Details


3. Now go to your repository Settings > Secrets > Actions and click on New repository secret.
Now go to your repository Secrets > Actions and click on New repository secret

4. Now add a repository secret these details one by one.
Name: FTP_SERVER
Value: YOUR_FTP_SERVER_ADDRESS

Name: FTP_USERNAME
Value: YOU_FTP_USERNAME

Name: FTP_PASSWORD
Value: YOUR_FTP_PASSWORD
In my case its
Name: FTP_SERVER
Value: ftp.recmail.net

Name: FTP_USERNAME
Value: admin_github@blog.hit4visit.com

Name: FTP_PASSWORD
Value: s^E7tXj+O00U
Add a repository secret

5. Now add an action workflow. Change its name from main.yml to cPanelDepolyment.yml
    Copy the code below and add it to the workflow, click on start commit and then commit new file.
workflow commit


 And boom, now you can do CI/CD of your project. Now, wait a few minutes until it deploys its initial code, after that once you push to the branch your setup, for older "master" or new version "main" or whatever you setup as default or you want its push to be updated, it will automatically update on your website. 

Video Tutorial


LihatTutupKomentar

Postingan Populer