Deploying Applications
Deploy applications by running a DevOps deployment pipeline.
Before you run a pipeline, you must have a deployment pipeline defined. To run deployment pipelines you must enable logging for the DevOps project. To enable logging, see DevOps Logs.
Each service in Oracle Cloud Infrastructure (OCI) integrates with Identity and Access Management (IAM) for authentication and authorization. To grant users permission to access the DevOps deployment pipelines and other resources, you must create dynamic groups and IAM policies.
For creating dynamic groups and policies for deployment pipelines, see Deployment Pipeline Policies. For more details, see DevOps IAM Policies.
For accessing DevOps using the Oracle Cloud Console, REST API, and CLI, see Accessing DevOps.
Deployment progress and status are displayed in the Deployments tab. You can stop a deployment in progress before it completes, by clicking Stop Run. Note the reason for canceling the deployment. Only one deployment can run at a time for a pipeline.
During deployment of the Install Helm chart to Kubernetes cluster or run Helm commands on Kubernetes cluster stage, you have option to cancel the deployment that results in rollback of the stage to the previous state. See Deploying a Helm Artifact.
If the deployment pipeline has an Approval stage, then the deployment waits for the manual approval before completion. Approver can approve or reject the deployment. Reason for approval or rejection must be mentioned. You can rerun completed deployments, see Deployment Rerun. After the deployment completes, you can manually roll back individual stages in the pipeline. For more information, see Rolling Back a Deployment.
To run a deployment pipeline, run the
create-pipeline-deploymentcommand:oci devops deployment create-pipeline-deployment --pipeline-idTo redeploy a pipeline, run the
create-pipeline-redeploymentcommand:oci devops deployment create-pipeline-redeployment --deployment-idTo update a deployment, run the
update-pipeline-deploymentcommand:oci devops deployment update-pipeline-deployment --deployment-idTo cancel a deployment, run the
cancelcommand:oci devops deployment cancel --deployment-id --reasonTo approve a deployment, run the
approvecommand:oci devops deployment approveRequired parameters to provide for the
approvecommand:--deployment-id--action--stage-id
To get all the commands for
deployment:oci devops deployment -hTo run a deployment pipeline, use the
CreateDeploymentoperation.To approve a deployment, use the
ApproveDeploymentoperation.To update a deployment, use the
UpdateDeploymentoperation.To cancel a deployment, use the
CancelDeploymentoperation.