To log into a Azure, we recommend using the Azure Login Action.
action "Deploy containers on Azure Function App" {
uses = "Azure/github-actions/functionscontainer@master"
secrets = ["DOCKER_PASSWORD"]
env = {
AZURE_APP_NAME = "<Azure App Name>"
DOCKER_USERNAME = "<Docker Registry username>"
DOCKER_REGISTRY_URL = "<Docker Registry URL>"
CONTAINER_IMAGE_NAME = "<Container Image Name>"
}
needs = ["Azure Login"]
}
DOCKER_PASSWORD
– Required for private registry, this is the password used to log in to your Docker registry.
AZURE_APP_NAME
– RequiredDOCKER_REGISTRY_URL
– RequiredDOCKER_USERNAME
– Required for private registry, this is the username used to log in to your Docker registry.CONTAINER_IMAGE_NAME
– RequiredCONTAINER_IMAGE_TAG
– Optional - ( default value = "latest").