forked from Azure-Samples/dotnetcore-docs-hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bc9d6af
Showing
93 changed files
with
75,176 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!-- | ||
IF SUFFICIENT INFORMATION IS NOT PROVIDED VIA THE FOLLOWING TEMPLATE THE ISSUE MIGHT BE CLOSED WITHOUT FURTHER CONSIDERATION OR INVESTIGATION | ||
--> | ||
> Please provide us with the following information: | ||
> --------------------------------------------------------------- | ||
### This issue is for a: (mark with an `x`) | ||
``` | ||
- [ ] bug report -> please search issues before submitting | ||
- [ ] feature request | ||
- [ ] documentation issue or request | ||
- [ ] regression (a behavior that used to work and stopped in a new release) | ||
``` | ||
|
||
### Minimal steps to reproduce | ||
> | ||
### Any log messages given by the failure | ||
> | ||
### Expected/desired behavior | ||
> | ||
### OS and Version? | ||
> Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) | ||
### Versions | ||
> | ||
### Mention any other details that might be useful | ||
|
||
> --------------------------------------------------------------- | ||
> Thanks! We'll be in touch soon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## Purpose | ||
<!-- Describe the intention of the changes being proposed. What problem does it solve or functionality does it add? --> | ||
* ... | ||
|
||
## Does this introduce a breaking change? | ||
<!-- Mark one with an "x". --> | ||
``` | ||
[ ] Yes | ||
[ ] No | ||
``` | ||
|
||
## Pull Request Type | ||
What kind of change does this Pull Request introduce? | ||
|
||
<!-- Please check the one that applies to this PR using "x". --> | ||
``` | ||
[ ] Bugfix | ||
[ ] Feature | ||
[ ] Code style update (formatting, local variables) | ||
[ ] Refactoring (no functional changes, no api changes) | ||
[ ] Documentation content changes | ||
[ ] Other... Please describe: | ||
``` | ||
|
||
## How to Test | ||
* Get the code | ||
|
||
``` | ||
git clone [repo-address] | ||
cd [repo-name] | ||
git checkout [branch-name] | ||
npm install | ||
``` | ||
|
||
* Test the code | ||
<!-- Add steps to run the tests suite and/or manually test --> | ||
``` | ||
``` | ||
|
||
## What to Check | ||
Verify that the following are valid | ||
* ... | ||
|
||
## Other Information | ||
<!-- Add any other helpful information that may be needed here. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy | ||
# More GitHub Actions for Azure: https://github.com/Azure/actions | ||
|
||
name: Build and deploy ASP.Net Core app to Azure Web App | ||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
env: | ||
AZURE_WEBAPP_NAME: learn-azure-webapp-law | ||
AZURE_WEBAPP_PACKAGE_PATH: "." | ||
DOTNET_VERSION: "6.0.x" | ||
jobs: | ||
app-build-deploy: | ||
runs-on: ubuntu-latest | ||
environment: Production | ||
steps: | ||
# Checkout the repo | ||
- uses: actions/checkout@main | ||
- run: | | ||
echo test dump | ||
echo subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
- uses: azure/login@v1 | ||
with: | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
|
||
# Setup .NET Core SDK | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
# Run dotnet build and publish | ||
- name: dotnet build and publish | ||
run: | | ||
dotnet restore | ||
dotnet build --configuration Release | ||
dotnet publish -c Release --property:PublishDir='${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp' | ||
# Deploy to Azure Web apps | ||
- name: "Run Azure webapp deploy action using publish profile credentials" | ||
uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: ${{ env.AZURE_WEBAPP_NAME }} | ||
package: "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp" | ||
|
||
- name: logout | ||
run: | | ||
az logout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy | ||
# More GitHub Actions for Azure: https://github.com/Azure/actions | ||
|
||
name: Build and deploy ASP.Net Core app to Azure Web App - verytemporaryapp | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '6.0.x' | ||
include-prerelease: true | ||
|
||
- name: Build with dotnet | ||
run: dotnet build --configuration Release | ||
|
||
- name: dotnet publish | ||
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp | ||
|
||
- name: Upload artifact for deployment job | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: .net-app | ||
path: ${{env.DOTNET_ROOT}}/myapp | ||
|
||
deploy: | ||
runs-on: windows-latest | ||
needs: build | ||
environment: | ||
name: 'Production' | ||
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} | ||
|
||
steps: | ||
- name: Download artifact from build job | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: .net-app | ||
|
||
- name: Deploy to Azure Web App | ||
id: deploy-to-webapp | ||
uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: 'verytemporaryapp' | ||
slot-name: 'Production' | ||
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_C141CEE17DDC4A95811218397F51EEE2 }} | ||
package: . |
Oops, something went wrong.