Skip to content

A practical demo using Azure Container Instances (ACI) + Azure Container Registry (ACR) with GitHub Actions for CI/CD

Notifications You must be signed in to change notification settings

Georges034302/azure-aci-acr-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Word Count CI/CD with ACR + ACI + GitHub Actions

This project demonstrates a complete CI/CD pipeline using Azure Container Registry (ACR), Azure Container Instances (ACI), and GitHub Actions, triggered by changes to a data file.

📌 Project Highlights:

  • ⚙️ Integration: Fully integrates (GitHub Actions + ACR + ACI) CI/CD pipeline.
  • 🔐 Setup: Configure Azure (Resource Group, ACR, Service Principal) and set GitHub Actions secrets.
  • 🧪 Demo App: A Python script counts words in specific data.txt
  • 🛠️ Automation: GitHub Actions runs the entire pipeline using Bash and Python scripts.
  • 🐳 Docker Build: A custom Docker image is built on every change and pushed to ACR.
  • 🚀 Deployment: The container is automatically deployed to ACI.
  • 🔄 Trigger: The CI/CD workflow is triggered by changes to specific data.txt.
  • ✅ Sucess: Dynamically update index.html with the word count and README with the curent 🌐FQDN
  • 🌐 Live Output: The updated word count is viewable at a public URL (FQDN) after deployment.

📁 Project Structure

.github/workflows/

├── apps/
│    └── app.py
├── scripts/
│    ├── setup.sh (One-time script - initialization)
│    ├── gh_setup.sh (One-time script - initialization)
│    ├── update_html.sh
│    ├── update_readme.sh
│    ├── git_push.sh
│    ├── deploy.sh
│    ├── entrypoint.sh
│    └── cleanup.sh (One-time script - clean up azure resources)

├── ci.yml
└── deploy.yml

index.html
specific data.txt
Dockerfile
.gitignore


🌐 Live App Access (FQDN)

http://wordcountdemo-14901658158.australiaeast.azurecontainer.io

About

A practical demo using Azure Container Instances (ACI) + Azure Container Registry (ACR) with GitHub Actions for CI/CD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published