Skip to content

ivao-brasil/deploy-to-cpanel-api

Repository files navigation

Deploy to cPanel API action

This action uses the cPanel API to trigger a git sync process and execute the .cpanel.yml as specified in https://docs.cpanel.net/cpanel/files/git-version-control

Inputs

Input Required Description
cpanel-url ✔️ cPanel access URL
deploy-user ✔️ cPanel deploy user
deploy-key ✔️ cPanel deploy key
cpanel-repository-root ✔️ cPanel git repository root
branch ✔️ The branch that will be synced
timeout_ms Timeout in ms to wait the deploy status

Outputs

deployment-id

cPanel generated deployment ID

Example usage

uses: ivao-brasil/deploy-to-cpanel-api@main
with:
    cpanel-url: "https://abc/cpsess1234"
    deploy-user: "test"
    deploy-key: "test"
    cpanel-repository-root: "/home/test/deploy"
    branch: main

It's advised to use Github secrets to safely provide the parameters.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published