Core Concepts
Deployments

Automated deployments

8min

Microtica enables seamless automated deployments by triggering CI/CD pipelines automatically when you push your code changes to a Git repository. With Microtica, you can specify the branch or tag to trigger the deployment, configure the repository and connect it with the desired cloud environment, and effortlessly automate the entire deployment process.

Prerequisites

Before setting up automated deployments in Microtica, ensure you have the following prerequisites:

  • A Microtica account.
  • A Git repository containing your application code.
  • Access to the cloud environment where you want to deploy your application (AWS).

Step-by-Step Guide for Automated Deployments

Follow these steps to configure automated deployments in Microtica:

Step 1: Configure Automated deployments in the UI

  1. Log in to your Microtica account and navigate to the Environment where your app is deployed.
  2. In the Apps tab, select the application you want to configure and navigate to App Settings.
  3. Click on Git on the left panel to review your Git settings: repo, branch/tag setup, and pipeline variables.
  4. By checking the Deploy on every commit or tag pushed to a branch you'll enable the automated trigger.
  5. Click the Save button in the right corner to save your changes.
Microtica pipelines


Step 2: Defining the Deployment Pipeline

In Microtica, you define your deployment pipeline using the microtica.yaml file. This file serves as the blueprint for your software delivery process, specifying the build, test, and deployment steps required for your application.

Refer to the dedicated documentation page and subpages for a comprehensive guide on creating and configuring your pipeline.These resources provide detailed explanations and examples to help you define your deployment pipeline precisely.

Step 3: Save and Activate the Pipeline

  1. Review the pipeline configuration and ensure all settings are accurate in the microtica.yaml file.
  2. Commit and push your changes to the configured branch or tag in the selected Git repository.
  3. This will activate the pipeline and execute the defined steps.

Step 4: Monitor the Deployment Progress

  1. Navigate to the Pipeline tab in the application view.
  2. Locate and click on the pipeline you created to monitor its progress.
  3. You will receive in-app notifications and updates on the deployment status as it progresses through the pipeline stages.
pipeline details


Video Guide for Automated Deployments

Take a look at this video of a scenario deploying automatically from the master branch and another feature branch.



🎊 Congratulations

You have successfully set up automated deployments with Microtica. From now on, whenever you push code changes to the configured branch or tag in your Git repository, Microtica will automatically trigger the CI/CD pipeline, ensuring seamless and efficient deployments to your desired cloud environment.

Microtica provides additional configuration options and advanced features to enhance your automated deployment workflows, such as environment-specific variables, and integrations with external tools. Refer to the Microtica documentation for detailed instructions and explore these features to optimize your deployments further.