Add setup instructions to the top

This commit is contained in:
Jason Freeberg
2021-10-27 12:20:09 -07:00
parent c78dd727e9
commit 3893e3d7c8
6 changed files with 112 additions and 27 deletions
+18 -2
View File
@@ -1,5 +1,21 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy # This workflow will build and push a Docker container to an Azure Web App when a commit is pushed to your default branch.
# More GitHub Actions for Azure: https://github.com/Azure/actions #
# This workflow assumes you have already created the target Azure App Service web app.
# For instructions see https://docs.microsoft.com/en-us/azure/app-service/quickstart-nodejs?tabs=linux&pivots=development-environment-cli
#
# To configure this workflow:
#
# 1. Download the Publish Profile for your Azure Web App. You can download this file from the Overview page of your Web App in the Azure Portal.
# For more information: https://docs.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=applevel#generate-deployment-credentials
#
# 2. Create a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE, paste the publish profile contents as the value of the secret.
# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret
#
# 3. Change the value for the AZURE_WEBAPP_NAME.
#
# For more information on GitHub Actions for Azure: https://github.com/Azure/Actions
# For more information on the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples
name: Build and deploy a container to an Azure Web App name: Build and deploy a container to an Azure Web App
+20 -3
View File
@@ -1,10 +1,27 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy # This workflow will build and push a .NET Core app to an Azure Web App when a commit is pushed to your default branch.
# More GitHub Actions for Azure: https://github.com/Azure/actions #
# This workflow assumes you have already created the target Azure App Service web app.
# For instructions see https://docs.microsoft.com/en-us/azure/app-service/quickstart-nodejs?tabs=linux&pivots=development-environment-cli
#
# To configure this workflow:
#
# 1. Download the Publish Profile for your Azure Web App. You can download this file from the Overview page of your Web App in the Azure Portal.
# For more information: https://docs.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=applevel#generate-deployment-credentials
#
# 2. Create a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE, paste the publish profile contents as the value of the secret.
# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret
#
# 3. Change the value for the AZURE_WEBAPP_NAME. Optionally, change the AZURE_WEBAPP_PACKAGE_PATH and DOTNET_VERSION environment variables below.
#
# For more information on GitHub Actions for Azure: https://github.com/Azure/Actions
# For more information on the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples
name: Build and deploy ASP.Net Core app to an Azure Web App name: Build and deploy ASP.Net Core app to an Azure Web App
env: env:
AZURE_WEBAPP_NAME: your-app-name # set this to the name of your Azure Web App AZURE_WEBAPP_NAME: your-app-name # set this to the name of your Azure Web App
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '5' # set this to the .NET Core version to use DOTNET_VERSION: '5' # set this to the .NET Core version to use
on: on:
@@ -56,4 +73,4 @@ jobs:
with: with:
app-name: ${{ env.AZURE_WEBAPP_NAME }} app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: . package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
+18 -2
View File
@@ -1,5 +1,21 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy # This workflow will build and push a node.js application to an Azure Web App when a commit is pushed to your default branch.
# More GitHub Actions for Azure: https://github.com/Azure/actions #
# This workflow assumes you have already created the target Azure App Service web app.
# For instructions see https://docs.microsoft.com/en-us/azure/app-service/quickstart-nodejs?tabs=linux&pivots=development-environment-cli
#
# To configure this workflow:
#
# 1. Download the Publish Profile for your Azure Web App. You can download this file from the Overview page of your Web App in the Azure Portal.
# For more information: https://docs.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=applevel#generate-deployment-credentials
#
# 2. Create a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE, paste the publish profile contents as the value of the secret.
# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret
#
# 3. Change the value for the AZURE_WEBAPP_NAME. Optionally, change the JAVA_VERSION environment variable below.
#
# For more information on GitHub Actions for Azure: https://github.com/Azure/Actions
# For more information on the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples
name: Build and deploy JAR app to Azure Web App name: Build and deploy JAR app to Azure Web App
+15 -10
View File
@@ -1,23 +1,27 @@
# This workflow will build and push a node.js application to an Azure Web App when a release is created. # This workflow will build and push a node.js application to an Azure Web App when a commit is pushed to your default branch.
# #
# This workflow assumes you have already created the target Azure App Service web app. # This workflow assumes you have already created the target Azure App Service web app.
# For instructions see https://docs.microsoft.com/azure/app-service/app-service-plan-manage#create-an-app-service-plan # For instructions see https://docs.microsoft.com/en-us/azure/app-service/quickstart-nodejs?tabs=linux&pivots=development-environment-cli
# #
# To configure this workflow: # To configure this workflow:
# #
# 1. For Linux apps, add an app setting called WEBSITE_WEBDEPLOY_USE_SCM and set it to true in your app **before downloading the file**. # 1. Download the Publish Profile for your Azure Web App. You can download this file from the Overview page of your Web App in the Azure Portal.
# For more instructions see: https://docs.microsoft.com/azure/app-service/configure-common#configure-app-settings # For more information: https://docs.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=applevel#generate-deployment-credentials
# #
# 2. Set up a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE with the value of your Azure publish profile. # 2. Create a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE, paste the publish profile contents as the value of the secret.
# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret # For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret
# #
# 3. Change the values for the AZURE_WEBAPP_NAME, AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables (below). # 3. Change the value for the AZURE_WEBAPP_NAME. Optionally, change the AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables below.
# #
# For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions # For more information on GitHub Actions for Azure: https://github.com/Azure/Actions
# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples # For more information on the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples
on: on:
release: push:
types: [created] branches:
- $default-branch
workflow_dispatch:
env: env:
AZURE_WEBAPP_NAME: your-app-name # set this to your application's name AZURE_WEBAPP_NAME: your-app-name # set this to your application's name
@@ -61,6 +65,7 @@ jobs:
name: node-app name: node-app
- name: 'Deploy to Azure WebApp' - name: 'Deploy to Azure WebApp'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2 uses: azure/webapps-deploy@v2
with: with:
app-name: ${{ env.AZURE_WEBAPP_NAME }} app-name: ${{ env.AZURE_WEBAPP_NAME }}
+22 -6
View File
@@ -1,7 +1,23 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy # This workflow will build and push a node.js application to an Azure Web App when a commit is pushed to your default branch.
# More GitHub Actions for Azure: https://github.com/Azure/actions #
# This workflow assumes you have already created the target Azure App Service web app.
# For instructions see https://docs.microsoft.com/en-us/azure/app-service/quickstart-nodejs?tabs=linux&pivots=development-environment-cli
#
# To configure this workflow:
#
# 1. Download the Publish Profile for your Azure Web App. You can download this file from the Overview page of your Web App in the Azure Portal.
# For more information: https://docs.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=applevel#generate-deployment-credentials
#
# 2. Create a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE, paste the publish profile contents as the value of the secret.
# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret
#
# 3. Change the value for the AZURE_WEBAPP_NAME. Optionally, change the AZURE_WEBAPP_PACKAGE_PATH and PHP_VERSION environment variables below.
#
# For more information on GitHub Actions for Azure: https://github.com/Azure/Actions
# For more information on the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples
name: Build and deploy PHP app to Azure Web App - __sitename__ name: Build and deploy PHP app to Azure Web App
on: on:
push: push:
@@ -12,7 +28,7 @@ on:
env: env:
AZURE_WEBAPP_NAME: your-app-name # set this to your application's name AZURE_WEBAPP_NAME: your-app-name # set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
NODE_VERSION: '10.x' # set this to the PHP version to use PHP_VERSION: '8.x' # set this to the PHP version to use
jobs: jobs:
build: build:
@@ -24,7 +40,7 @@ jobs:
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: ${{ env.NODE_VERSION }} php-version: ${{ env.PHP_VERSION }}
- name: Check if composer.json exists - name: Check if composer.json exists
id: check_files id: check_files
@@ -56,8 +72,8 @@ jobs:
name: php-app name: php-app
- name: 'Deploy to Azure Web App' - name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with: with:
app-name: ${{ env.AZURE_WEBAPP_NAME }} app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
+19 -4
View File
@@ -1,6 +1,21 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy # This workflow will build and push a node.js application to an Azure Web App when a commit is pushed to your default branch.
# More GitHub Actions for Azure: https://github.com/Azure/actions #
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions # This workflow assumes you have already created the target Azure App Service web app.
# For instructions see https://docs.microsoft.com/en-us/azure/app-service/quickstart-nodejs?tabs=linux&pivots=development-environment-cli
#
# To configure this workflow:
#
# 1. Download the Publish Profile for your Azure Web App. You can download this file from the Overview page of your Web App in the Azure Portal.
# For more information: https://docs.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=applevel#generate-deployment-credentials
#
# 2. Create a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE, paste the publish profile contents as the value of the secret.
# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret
#
# 3. Change the value for the AZURE_WEBAPP_NAME. Optionally, change the AZURE_WEBAPP_PACKAGE_PATH and PYTHON_VERSION environment variables below.
#
# For more information on GitHub Actions for Azure: https://github.com/Azure/Actions
# For more information on the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples
name: Build and deploy Python app to Azure Web App name: Build and deploy Python app to Azure Web App
@@ -59,8 +74,8 @@ jobs:
path: . path: .
- name: 'Deploy to Azure Web App' - name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with: with:
app-name: ${{ env.AZURE_WEBAPP_NAME }} app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}