Skip to content

GitHub Action to deploy SSL certificate to Azure Web App (including Function App)

License

Notifications You must be signed in to change notification settings

Menci/deploy-certificate-to-azure-web-app

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.

If you want to upload SSL certificates to Azure Key Vault, just write a one-liner azure/CLI command.

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.

About

GitHub Action to deploy SSL certificate to Azure Web App (including Function App)

Resources

License

Stars

Watchers

Forks

Packages

No packages published