An action to run Azure CLI commands from a GitHub Workflow. This action launches a Docker container with the Azure CLI installed, logs in, and then attempts to run the command specified in the command
input.
Parameter | Description | Required |
---|---|---|
username | Azure Service Principal Username | true |
tenant | Azure Service Principal Tenant | true |
password | Azure Service Principal Tennant ID | true |
command | A command to run | true |
- name: Start MyContainerGroup
uses: Plabick/ACR-Container-Purge-Action@master
with:
registry: ${{ secrets.registry }}
username: ${{ secrets.service-principal-username }}
tenant: ${{ secrets.service-principal-tenant }}
password: ${{ secrets.SERVICE_PRINCIPAL_TOKEN }}
command: 'az container start --name MyContainerGroup --resource-group MyResourceGroup'