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-deployment
command:oci devops deployment create-pipeline-deployment --pipeline-id
To redeploy a pipeline, run the
create-pipeline-redeployment
command:oci devops deployment create-pipeline-redeployment --deployment-id
To update a deployment, run the
update-pipeline-deployment
command:oci devops deployment update-pipeline-deployment --deployment-id
To cancel a deployment, run the
cancel
command:oci devops deployment cancel --deployment-id --reason
To approve a deployment, run the
approve
command:oci devops deployment approve
Required parameters to provide for the
approve
command:--deployment-id
--action
--stage-id
To get all the commands for
deployment
:oci devops deployment -h
To run a deployment pipeline, use the
CreateDeployment
operation.To approve a deployment, use the
ApproveDeployment
operation.To update a deployment, use the
UpdateDeployment
operation.To cancel a deployment, use the
CancelDeployment
operation.