Closed zepor closed 11 months ago
The Pull Request introduces a new GitHub Actions workflow named fedeploy
that automates the deployment of a containerized application to Azure Kubernetes Service (AKS). The workflow triggers on pushes to the main
branch or can be manually dispatched. It consists of two jobs: buildImage
and deploy
.
The buildImage
job logs into Azure, builds a Docker image from a Docker Compose file, and pushes it to Azure Container Registry (ACR) using the commit SHA as the image tag.
The deploy
job, which depends on buildImage
, also logs into Azure, sets up Kubernetes context for the AKS cluster, and uses Helm to deploy the application to AKS with overrides specified for the container image repository and tag.
AZURE_CLIENT_ID
, AZURE_SUBSCRIPTION_ID
, AZURE_TENANT_ID
) are properly set in the GitHub repository for Azure login.admin
flag for AKS context should be set to true
or false
depending on the required access level for the deployment../docker-compose.prod.yml
) and the context path (./frontend-container
) are correct.
Add workflow to deploy to AKS