GitHub Actions for
deploying to Azure
GitHub Actions gives
you the flexibility to build an automated software development lifecycle
workflow.
With GitHub Actions
for Azure you can create workflows that you can set up in your repository to
build, test, package, release and deploy to Azure. Learn more about all other integrations with Azure.
Get started today with
a free Azure account!
To easily create
GitHub CI/CD workflows targeting Azure, use our Azure starter
templates to deploy your apps created with popular languages
and frameworks such as .NET, Node.js, Java, PHP, Ruby or Python, in containers
or running on any operating system. Also the
individual Action repos have a sample workflow included in their Readme file to
help you quickly get started.
Please try out the
GitHub Actions for Azure and share your feedback via Twitter on @Azure. If you encounter a problem, please
open an issue on the GitHub repository for the specific action.
GitHub
Actions for Azure
Connect to Azure
Refer to starter
templates for examples.
Get Secrets from Azure
Key Vault
With the Get KeyVault Secrets(azure/get-keyvault-secrets) action, you can fetch one or more secrets
from an Azure keyvault instance and consume in your
GitHub Action workflows.
Secrets fetched will
be set as outputs of
the keyvault action step and also as environment
variables. All the variables are automatically masked if printed to the console
or to logs.
Deploy a Web app
Azure App Service is a
managed platform for deploying and scaling web applications. You can easily
deploy your web app to Azure App Service with
You could also
configure App settings and Connection Strings using the
Learn more about
deploying web applications to Azure using GitHub Actions from the documentation
of respective actions and starter
templates.
Deploy a serverless
app
Streamline the
deployment of your serverless applications to Azure Functions, an event-driven
serverless compute platform, by using the below actions and starter
templates.
Build & Deploy
containerized apps
For containerized apps
(single- or multi-containers) to create a complete workflow
Deploy to Kubernetes
We have released
multiple actions to help you connect to a Kubernetes cluster running
on-premises or on any cloud (including Azure Kubernetes Service – AKS), bake
and deploy manifests, substitute artifacts, check rollout status, and handle
secrets within the cluster.
To deploy to a cluster
on Azure Kubernetes Service, you could use azure/aks-set-context to communicate with the AKS cluster, and
then use azure/k8s-create-secret to create a pull image secret and finally use the azure/k8s-deploy to deploy the manifest files.
Refer to starter
templates for more examples.
Deploy to databases
We now have actions
for database deployments
Refer to starter
templates for examples.
Trigger a run in Azure
Pipelines
While GitHub Actions
makes it easy to build, test, and deploy your code right from GitHub, you can
also use it to trigger external CI/CD tools and services. For example, you
could use GitHub Actions for Continuous Integration, and Azure Pipelines for Continuous
Delivery to leverage features like Environments and deep integration with
Kubernetes.
Refer to starter
templates for examples.
Utility Actions
Refer to starter
templates for examples.
More coming soon!
We will continue
improving upon our available set of GitHub Actions, and will release new ones
to cover more Azure services.