Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users/balaga gayatri/prchecksrepo #163

Merged
merged 40 commits into from
Jul 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
e76f8e3
Create intergation-tests.yml
BALAGA-GAYATRI May 20, 2021
272d46a
Create InvokeL2RepoDispatchEvent.sh
BALAGA-GAYATRI May 20, 2021
448b764
Update intergation-tests.yml
BALAGA-GAYATRI May 20, 2021
16aec81
Update InvokeL2RepoDispatchEvent.sh
BALAGA-GAYATRI May 20, 2021
d6a55e2
Update intergation-tests.yml
BALAGA-GAYATRI May 21, 2021
541c0dd
Delete InvokeL2RepoDispatchEvent.sh
BALAGA-GAYATRI May 23, 2021
1a71dfd
Delete intergation-tests.yml
BALAGA-GAYATRI May 23, 2021
d318db9
Create webapp_dotnet_windows_code.yml
BALAGA-GAYATRI May 24, 2021
ec1adfd
Update webapp_dotnet_windows_code.yml
BALAGA-GAYATRI May 24, 2021
1ef02a8
Update webapp_dotnet_windows_code.yml
BALAGA-GAYATRI May 24, 2021
4eef53e
Update webapp_dotnet_windows_code.yml
BALAGA-GAYATRI May 24, 2021
efd96dd
Update webapp_dotnet_windows_code.yml
BALAGA-GAYATRI May 24, 2021
9bc574b
Create webapp_python_linux_code.yml
BALAGA-GAYATRI Jun 1, 2021
5b8e30b
Delete webapp_dotnet_windows_code.yml
BALAGA-GAYATRI Jun 1, 2021
4f75803
Update webapp_python_linux_code.yml
BALAGA-GAYATRI Jun 1, 2021
6449409
Update webapp_python_linux_code.yml
BALAGA-GAYATRI Jun 1, 2021
0d119c4
Update webapp_python_linux_code.yml
BALAGA-GAYATRI Jun 1, 2021
4bfb8e6
Update webapp_python_linux_code.yml
BALAGA-GAYATRI Jun 1, 2021
4ca3c57
Update webapp_python_linux_code.yml
BALAGA-GAYATRI Jun 1, 2021
ce727cc
Update webapp_python_linux_code.yml
BALAGA-GAYATRI Jun 1, 2021
c198d7a
Update webapp_python_linux_code.yml
BALAGA-GAYATRI Jun 1, 2021
45c713a
Update webapp_python_linux_code.yml
BALAGA-GAYATRI Jun 1, 2021
bf22143
Update webapp_python_linux_code.yml
BALAGA-GAYATRI Jun 1, 2021
df9f684
Update and rename webapp_python_linux_code.yml to pr_check_webapp_dot…
BALAGA-GAYATRI Jun 8, 2021
9d15054
Update pr_check_webapp_dotnet_windows.yml
BALAGA-GAYATRI Jun 8, 2021
748ff6b
Update pr_check_webapp_dotnet_windows.yml
BALAGA-GAYATRI Jun 24, 2021
50e3ec3
Update pr_check_webapp_dotnet_windows.yml
BALAGA-GAYATRI Jun 24, 2021
97ec767
Merge branch 'master' into users/balaga-gayatri/prchecksrepo
BALAGA-GAYATRI Jun 24, 2021
35671b7
Merge branch 'users/balaga-gayatri/prchecksrepo' of github.com:Azure/…
BALAGA-GAYATRI Jun 24, 2021
56b6d76
Update pr_check_webapp_dotnet_windows.yml
BALAGA-GAYATRI Jun 25, 2021
e2139c4
Update pr_check_webapp_dotnet_windows.yml
BALAGA-GAYATRI Jun 25, 2021
50de10d
Update pr_check_webapp_dotnet_windows.yml
BALAGA-GAYATRI Jul 1, 2021
323b3f1
Update pr_check_webapp_dotnet_windows.yml
BALAGA-GAYATRI Jul 1, 2021
287ebf9
Update pr_check_webapp_dotnet_windows.yml
BALAGA-GAYATRI Jul 1, 2021
bdd44b9
Create pr_check_windows_container_pubprofile.yml
BALAGA-GAYATRI Jul 1, 2021
d7c8f34
Update pr_check_windows_container_pubprofile.yml
BALAGA-GAYATRI Jul 1, 2021
361e161
Update pr_check_windows_container_pubprofile.yml
BALAGA-GAYATRI Jul 1, 2021
947c340
Update pr_check_windows_container_pubprofile.yml
BALAGA-GAYATRI Jul 1, 2021
3711ad0
Update pr_check_webapp_dotnet_windows.yml
kanika1894 Jul 1, 2021
fbc0006
Update pr_check_windows_container_pubprofile.yml
kanika1894 Jul 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions .github/workflows/pr_check_webapp_dotnet_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: pr_check_webapp_dotnet_windows

on:
push:
branches:
- master
- releases/*
paths-ignore:
- '**.md'
pull_request_target:
branches:
- master
- 'releases/*'

# CONFIGURATION
# For help, go to https://github.com/Azure/Actions
#
# 1. Set up the following secrets in your repository:
# AZURE_WEBAPP_PUBLISH_PROFILE
#
# 2. Change these variables for your configuration:
env:
AZURE_WEBAPP_NAME: dotnetwebapplima # 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
NUGET_VERSION: '5.3.1' # set this to the node version to use

jobs:
run-integration-test:
environment: automation test
name: Validate PR
strategy:
matrix:
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2

- uses: actions/checkout@master
with:
repository: Azure-Samples/dotnet-sample
ref: master
path: 'dotnetsample'

- name: Install Nuget
uses: nuget/setup-nuget@v1
with:
nuget-version: ${{ env.NUGET_VERSION}}
- name: NuGet to restore dependencies as well as project-specific tools that are specified in the project file
run: |
pwd
cd dotnetsample
nuget restore

- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: Run MSBuild
run: msbuild .\dotnetsample\SampleWebApplication.sln

- uses: actions/checkout@v2
name: Checkout from PR branch
with:
repository: Azure/webapps-deploy
path: 'webapps-deploy'

- name: Installing dependencies and building latest changes
run: |
cd webapps-deploy
npm install
npm run build

- name: Azure authentication
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_WEBAPP_SPN }}

- name: 'Deploy to Azure WebApp'
uses: ./webapps-deploy/
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }} # Replace with your app name
#publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} # Define secret variable in repository settings as per action documentation
package: 'D:\a\webapps-deploy\webapps-deploy\dotnetsample\SampleWebApplication\'
90 changes: 90 additions & 0 deletions .github/workflows/pr_check_windows_container_pubprofile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: pr_check_windows_container_publishprofile

on:
push:
branches:
- master
- releases/*
paths-ignore:
- '**.md'
pull_request_target:
branches:
- master
- 'releases/*'

env:
AZURE_WEBAPP_NAME: windowscontainerwebapp # set this to your application's name
CONTAINER_REGISTRY: l2testscontainerregistry.azurecr.io # set secret with Container Registry URL, example : xyz.azurecr.io

jobs:
build-and-deploy:
environment: automation test
name: Validate PR
runs-on: windows-latest
steps:
# checkout the repo
- name: 'Checkout Github Action'
uses: actions/checkout@master
with:
repository: GH-ACE/python_container_App
ref: main
path: 'python_container_App'

- name: Azure authentication
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_WEBAPP_SPN }}

- uses: azure/docker-login@v1
with:
login-server: l2testscontainerregistry.azurecr.io
username: ${{ secrets.L2TEST_ACR_USERNAME }}
password: ${{ secrets.L2TEST_ACR_PASSWORD }}

- run: |
pwd
cd python_container_App
docker pull mcr.microsoft.com/azure-app-service/windows/canary:5.0-nanoserver
docker tag mcr.microsoft.com/azure-app-service/windows/canary:5.0-nanoserver ${{ env.CONTAINER_REGISTRY }}/containerwebapp/canaryreplica:latest
docker push ${{ env.CONTAINER_REGISTRY }}/containerwebapp/canaryreplica:latest

- name: Set Web App ACR authentication
uses: Azure/appservice-settings@v1
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
app-settings-json: |
[
{
"name": "DOCKER_REGISTRY_SERVER_PASSWORD",
"value": "${{ secrets.L2TEST_ACR_PASSWORD }}",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_URL",
"value": "https://${{ env.CONTAINER_REGISTRY }}",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_USERNAME",
"value": "${{ secrets.L2TEST_ACR_USERNAME }}",
"slotSetting": false
}
]
- uses: actions/checkout@v2
name: Checkout from PR branch
with:
repository: Azure/webapps-deploy
path: 'webapps-deploy'

- name: Installing dependencies and building latest changes in action
run: |
cd webapps-deploy
npm install
npm run build

- name: 'Deploy to Azure WebApp'
uses: ./webapps-deploy/
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }} # Replace with your app name
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
images: ${{ env.CONTAINER_REGISTRY }}/containerwebapp/canaryreplica:latest