GitHub Action
Deploy a Wordpress on Azure App service
v2
Latest version
This GitHub Action automates the deployment of a WordPress Web App on a Windows App Service instance, including MySQL setup.
For more information on this quickstart template
Note: Please install the Configure-Azure-Settings app from the GitHub Marketplace to populate the below inputs as secrets in your repository
- client-id (required): Client ID used for Azure login.
- tenant-id (required): Tenant ID used for Azure login.
- subscription-id (required): Azure subscription ID used with the
az login
. - resource-group-name (required): Resource group where Azure resources will be deployed.
Create this workflow in your repo on this path: .github/workflows/workflow_file.yml
name: Workflow to deploy WordPress VM on Azure
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
deploy-resources-to-azure:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3
- name: Deploy WordPress to Azure App Service instance
uses: Azure/WordPress-Azure-App-Service@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
resource-group-name: ${{secrets.AZURE_RG}}
The action creates a Wordpress App which can be viewed on portal.azure.com and provides information about the deployed resources.