Code Monkey home page Code Monkey logo

azure-cicd-tf-githubactions's Introduction

Azure-CICD-TF-GitHub Actions

Sample Azure CICD project for infra creation via githubactions

Azure Container Registry with Terraform

This project demonstrates how to create an Azure Container Registry (ACR) using Terraform.

Prerequisites

Before getting started, ensure you have the following prerequisites:

  • Azure subscription
  • Azure CLI installed
  • GitHub repository

Setup

  1. Clone the repository:

    git clone <repository_url>
    
  2. Set up Azure credentials:

Create an Azure Service Principal in the Azure portal. Obtain the Client ID, Client Secret, and Tenant ID. In your GitHub repository, go to "Settings" and navigate to "Secrets". Add the following secrets: AZURE_CLIENT_ID: Client ID of the Azure Service Principal. AZURE_CLIENT_SECRET: Client Secret of the Azure Service Principal. AZURE_TENANT_ID: Tenant ID of your Azure AD.
3. Customize the Terraform configuration:

Update the variables in the terraform.tfvars file as per your requirements. Modify the Terraform code in main.tf if additional resources or configurations are needed.

  1. Run Terraform commands: Initialize Terraform: terraform init Review the execution plan: terraform plan Apply the Terraform configuration: terraform apply --auto-approve

  2. Verify the Azure Container Registry:

    The Azure Container Registry will be created in the specified resource group and region. Access details, including the login server, can be retrieved from the Terraform output.

  3. Cleanup To remove the Azure Container Registry and associated resources:

    Run the Terraform destroy command: terraform destroy --auto-approve Confirm the destruction of resources by typing yes when prompted. Please note that destroying resources is irreversible, and it will remove the Azure Container Registry and all associated resources.

  4. Contributing Contributions are welcome! Please feel free to open issues or submit pull requests for any improvements or bug fixes.

  5. License This project is licensed under the MIT License. Feel free to modify the content based on your specific project details and requirements.

azure-cicd-tf-githubactions's People

Contributors

unplugged-kk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.