https://github.com/menci/deploy-certificate-to-azure-web-app
GitHub Action to deploy SSL certificate to Azure Web App (including Function App)
https://github.com/menci/deploy-certificate-to-azure-web-app
Last synced: 4 months ago
JSON representation
GitHub Action to deploy SSL certificate to Azure Web App (including Function App)
- Host: GitHub
- URL: https://github.com/menci/deploy-certificate-to-azure-web-app
- Owner: Menci
- License: mit
- Created: 2021-09-04T16:07:03.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-10T17:19:35.000Z (over 3 years ago)
- Last Synced: 2026-01-14T00:39:51.320Z (6 months ago)
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action for Azure Web App certificate deployment
Deploy SSL certificate to Azure Web App (including Function App).
Supports multiple deployment slots (will be handled automatically) and multiple custom domains (make sure your certificate includes ALL custom domains in SAN).
# Usage
> If you need to issue SSL certificates automatically, you can use [my acme.sh action](https://github.com/marketplace/actions/issue-ssl-certificate).
>
> If you want to upload SSL certificates to Azure Key Vault, just write a one-liner `azure/CLI` command.
```yaml
jobs:
deploy-to-webapp:
name: Deploy certificate to Azure Web App
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
with:
# If you just commited and pushed your newly issued certificate to this repo in a previous job,
# use `ref` to make sure checking out the newest commit in this job
ref: ${{ github.ref }}
- uses: Menci/deploy-certificate-to-azure-web-app@beta-v2
with:
azcliversion: latest # Omit to use 'latest'.
creds: ${{ secrets.AZURE_CREDENTIALS }} # The same as `cred` in `azure/login`
subscription: 123e4567-e89b-42d3-a456-556642440000 # Omit if you have set the default subscription.
resource-group: MyResourceGroup # Omit if you have set the default resource group.
webapp-name: my-awesome-webapp
certificate-file: my/ssl/certificate.pfx
certificate-password: ${{ secrets.PFX_PASSWORD }}
delete-old-certificates: true # `false` to not deleting old certificates. Don't omit.
```