Git-Push-Deploy Add-On
Git-Push-Deploy Add-On
It is designed for frequent application updates where the operating system, application-server stack, and software dependencies remain unchanged. In these cases, updating only the application source is faster and simpler than redeploying the complete container image.
Git-Push-Deploy Specifics
The add-on supports GitHub and GitLab repositories and can deliver updates to certified application-server stacks for Java, PHP, Ruby, Node.js, and Python projects.
ROOT Context Requirements
ROOT context on the application server.
- An existing application deployed to the ROOT context is overwritten during add-on installation. Move it to a custom context first when it must be preserved.
- The managed application must remain in the ROOT context for push-triggered updates to work.
- Custom non-ROOT contexts are not supported.
- Deploying the same repository to multiple contexts is not supported.
Generate a GitHub Access Token
The add-on needs a personal access token so it can create and manage the repository webhook used to trigger deployment.
1Open token settings
In GitHub, open Settings > Developer settings > Personal access tokens. Choose a classic or fine-grained token and click Generate new token.
Classic Token
- Note: Enter a clear token description.
- Expiration: Select an appropriate validity period.
- Scopes: Enable at least
repoandadmin:repo_hook.
Fine-Grained Token
- Provide a token name and optional description.
- Select the resource owner.
- Set the expiration date.
- Select the required repository or repositories.
- Allow read-and-write access for Webhooks.
- Allow read access for Metadata and Contents.
Generate the token, confirm the request, and copy its value immediately.
Generate a GitLab Access Token
1Open Access Tokens
In GitLab account settings, open the Access Tokens section.
- Enter an optional token name.
- Select an expiry date or leave it blank when permitted.
- Enable the
apipermission scope. - Click Create Personal Access Token.
- Copy and store the generated value securely.
Install Git-Push-Deploy
1Open the Marketplace
Open the platform Marketplace and search for Git-Push-Deploy.
2Select the target environment
Choose the application environment that contains the certified application-server stack.
3Provide repository information
Enter the Git provider, repository URL, branch, account information, personal access token, and any language-specific deployment settings requested by the package.
4Install the package
Review the configuration and click Install. The package creates the required deployment pipeline and repository webhook.
How Push Deployment Works
Developer pushes code
|
v
GitHub or GitLab webhook
|
v
Git-Push-Deploy pipeline
|
+-- Java: Maven build and package deployment
|
+-- PHP/Ruby/Node.js/Python: direct ROOT update
|
v
Updated application becomes available
- A developer pushes a commit to the configured branch.
- The repository webhook notifies the platform package.
- The package starts the build or source-deployment process.
- The application in the ROOT context is updated automatically.
- The deployment result can be reviewed through platform tasks and logs.
Manage or Remove the Integration
- Review environment tasks and application logs when a deployment fails.
- Check that the access token remains active and retains the required webhook and repository permissions.
- Confirm that the repository webhook still points to the deployment endpoint created by the package.
- Update or reinstall the add-on when changing repository, branch, token, or target environment.
- Remove the Marketplace add-on and its repository webhook when continuous deployment is no longer required.
What’s next?
- Deployment Manager
- Git & SVN Auto-Deploy
- SSH Access to Git Repository
- Deployment Hooks
