Skip to content

Instantly share code, notes, and snippets.

@sjwaight
Last active March 19, 2019 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjwaight/4bb9480939c1a9cd5803cd752b728f33 to your computer and use it in GitHub Desktop.
Save sjwaight/4bb9480939c1a9cd5803cd752b728f33 to your computer and use it in GitHub Desktop.
GitHub Action definition to deploy a repository to an Azure Web App
workflow "Publish to App Service" {
on = "push"
resolves = ["Deploy to Web App"]
}
action "Azure Login" {
uses = "Azure/github-actions/login@master"
env = {
AZURE_SUBSCRIPTION = "YOUR_AZURE_SUBSCRIPTION_NAME"
}
secrets = ["AZURE_SERVICE_APP_ID", "AZURE_SERVICE_PASSWORD", "AZURE_SERVICE_TENANT"]
}
action "Deploy to Web App" {
uses = "Azure/github-actions/webapp@master"
needs = ["Azure Login"]
env = {
AZURE_APP_NAME = "YOUR_LINUX_WEB_APP_NAME"
AZURE_APP_PACKAGE_LOCATION = "./"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment