- Create a resource group
- Create an Azure Container App Environment
- Create an Azure Container Registry
- Create an Azure Container App
- Create RBAC and assign a contributor role to a resource group no 1.
- Create Secret on GitHub > Settings > Secrets > Actions
- AZURE_CREDENTIALS
- AZURE_RG
- ACR_PWD
- ACR_USR
- ACR_URL (Ex: acrfyi.azurecr.io)
- ACA_NAME (Ex: aca-fyi)
- Create a resource group
az group create -l eastus -n rg-container-app
- Create an Azure Container App Environment
az containerapp env create -n aca-env-fyi -g rg-container-app -l eastus
- Create an Azure Container Registry
az acr create -n acrfyi -g rg-container-app --sku Basic --admin-enabled -l eastus
az acr build --registry acrfyi.azurecr.io --image nodeapp:$(date +%Y.%m.%d).0 .
- Create an Azure Container App
az containerapp create -n aca-fyi -g rg-container-app \
--image acr-fyi.azurecr.io/node-app:v1.0 \
--environment aca-env-fyi \
--ingress external --target-port 80 \
--registry-server acrfyi.azurecr.io --registry-username {acr_user} --registry-password {acr_password} \
--query properties.configuration.ingress.fqdn
- Create RBAC and assign a contributor role to a resource group no 1.
az ad sp create-for-rbac --name "sp-container-app" --role contributor \
--scopes /subscriptions/{subscription-id}/resourceGroups/rg-container-app \
--sdk-auth true --years 100
- Clean all azure resources
az group delete -n rg-container-app
az ad sp delete --id sp-container-app