Dummy azure templates (#1249)

* Rename "azure.yml" to Node-specific name

* Add templates and properties for other languages

* Add workflow for .NET Core

* Add workflow and properties file for PHP

* Updates from PR review

* Fix EOF

* Use latest versions

* Renamed the file appropriately.

* Put the azure file back.

* Added azure back.

* Revert "Dummy azure templates for showcasing the CD Ordering Behavior (#1194)"

This reverts commit 9ce2a5b56f.

Co-authored-by: Jason Freeberg <[email protected]>
This commit is contained in:
Ashwin Sangem
2021-11-15 13:40:30 +05:30
committed by GitHub
co-authored by Jason Freeberg
parent abf0c13931
commit 2f7dd74318
12 changed files with 7 additions and 364 deletions
+6 -24
View File
@@ -26,41 +26,23 @@ env:
NODE_VERSION: '10.x' # set this to the node version to use
jobs:
build:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: npm install, build, and test
run: |
# Build and test the project, then
# deploy to Azure Web App.
npm install
npm run build --if-present
npm run test --if-present
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
with:
name: node-app
path: .
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Development'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: node-app
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
with: