This repository contains a GitHub Action to automate the deployment of your application to Payara Cloud using the Payara Cloud CLI (PCL). The action allows you to deploy a .war file to Payara Cloud by specifying various parameters like the subscription id, namespace, app name, and artifact location.
- Upload artifacts to Payara Cloud.
- Deploy Java applications to Payara Cloud.
token
: Required. The Payara Cloud CLI token. You can create a token by runningpcl login --print-token
and following the instructions.subscription_name
: Optional. Only required if your account has access to multiple subscriptions. Provide the subscription name to specify which subscription to use.namespace
: Required. The namespace under which your app will be deployed (e.g., your-namespace).app_name
: Optional. The name of the app to deploy (e.g., your-app). If not specified, it will be inferred from the WAR file name.artifact_location
: Required. The path to the .war file to deploy (e.g., ./target/my-app.war).deploy
: Optional. Set tofalse
if the application should only be uploaded to Payara Cloud, but not deployed. Set totrue
to upload and deploy the application in one step.pcl_version
: Optional. The version of the Payara Cloud CLI to use. Default is '1.1.0'.
uses: payara/actions/cloud-deploy@v1
with:
token: ${{ secrets.PCL_TOKEN }}
subscription_name: 'your-subscription-name'
namespace: 'your-namespace'
app_name: 'your-app'
artifact_location: 'your-artifact.war'
deploy: true