Skip to content

Commit 2087f42

Browse files
shprakasuaggarasranjaN-Ushaeaarora-ms
authored
Releases/v2.2.6 (#293)
* Remove publish profile from logs (#18) * Remove publish profile from logs * ignore case for app name and slot * Fix typo in action.yml * Update README.md * Update README.md * Update README.md * Remove duplicate error messages (#23) * Update README.md * Added L0 tests and yml workflow * Workflow file added * Login&sample workflow * Sampleworkflow * Cloudshell quickstart * word correction * alignment * "create webapp in Azure using app service" * Publish prof container master (#35) * Added support for container apps with publish profile * Renamed publish profile container provider * refactor * Addressed review comments * Integrated diagnostics runtime API to get appOS * updated error message * updated error messages * updated error message * updated unit tests for publish profile container * quotes fix * changes in PublishProfileContainerWebAppValidator * refactor * added package-lock.json * adding lib * Documentation updates for publish profile container (#40) * updated action.yml * Update action.yml * Update action.yml * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Fixing typo * updating webappkind enum (#44) * Moving setresourcedetails into Publish profile container (#47) * change in validation factory * Update ValidatorFactory.js * fix for runtime os * update error log * updated error log * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * publish profile for slot deployment * updated document for slot * Fix private registry credentials example config (#58) * Expand explanation of az ad sp create-for-rbac in readme (#65) * Expanding explanation of az ad sp create-for-rbac * Small edits * Add note on managing service principals * Small clarifications, especially to heading * Clarify that examples are given in the article * Update secrets link * Bump @actions/core from 1.2.1 to 1.2.6 Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.1 to 1.2.6. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) Signed-off-by: dependabot[bot] <[email protected]> * Create issue-label-bot.yaml * New appkind support (#1) * New app-kind support * handling publish profile username scenarios * renamed test folder * renamed test folder in config file * added comments * Bump lodash from 4.17.15 to 4.17.20 (#72) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.20. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.15...4.17.20) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update README.md (#69) Placed a link to ensure that customers loop back to the pre-requisite section before building a Web App if they have skipped over it. * Update README.md (#80) * Update README.md * Update README.md (#82) * Fixed a small syntax error in the markdown 😊 (#84) * Update README.md (#87) * Make app-name and slot-name as lower case * Temp add node_modules * audit fix * update node version * temp commit for test * revert temp commit * remove node_modules * remove unnecessary file * Addressing comment * Update issue templates * Updated Readme for webapps-deploy actions (#97) * Update README.md * Update README.md * Update README.md Co-authored-by: Usha N <[email protected]> * added logs for multicontainer support (#104) * fix for duplicate duployment issue (#111) * Fix typo in error message (#116) * Fix typo in error message Change "credentails" to "credentials". * Fix typo in lib Also fix the typo in the built code in the lib folder. * Bump y18n from 4.0.0 to 4.0.1 Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/yargs/y18n/releases) - [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md) - [Commits](https://github.com/yargs/y18n/commits) Signed-off-by: dependabot[bot] <[email protected]> * Creating a workflow to label stale issues and PRs 1. Creating a workflow to label stale issues and PRs which have been open for 14 days with no activity. 2. Also close the stale issue in 5 days. PRs are not closed automatically as of now. * Update stale.yml * Update stale.yml * Updating trigger to run on a schedule only. * Update and rename stale.yml to defaultLabels.yml (#153) * Users/balaga gayatri/defaultlabels (#158) * Update and rename stale.yml to defaultLabels.yml * Update defaultLabels.yml * Update defaultLabels.yml * Update defaultLabels.yml * updating users/amkawade/kubeapp with master (#169) (#170) * updating users/amkawade/kubeapp with master (#169) * Bump lodash from 4.17.15 to 4.17.20 (#72) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.20. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.15...4.17.20) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update README.md (#69) Placed a link to ensure that customers loop back to the pre-requisite section before building a Web App if they have skipped over it. * Update README.md (#80) * Update README.md * Update README.md (#82) * Fixed a small syntax error in the markdown 😊 (#84) * Update README.md (#87) * Make app-name and slot-name as lower case * Temp add node_modules * audit fix * update node version * temp commit for test * revert temp commit * remove node_modules * remove unnecessary file * Addressing comment * Update issue templates * Updated Readme for webapps-deploy actions (#97) * Update README.md * Update README.md * Update README.md Co-authored-by: Usha N <[email protected]> * added logs for multicontainer support (#104) * fix for duplicate duployment issue (#111) * Fix typo in error message (#116) * Fix typo in error message Change "credentails" to "credentials". * Fix typo in lib Also fix the typo in the built code in the lib folder. * Bump y18n from 4.0.0 to 4.0.1 Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/yargs/y18n/releases) - [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md) - [Commits](https://github.com/yargs/y18n/commits) Signed-off-by: dependabot[bot] <[email protected]> * Creating a workflow to label stale issues and PRs 1. Creating a workflow to label stale issues and PRs which have been open for 14 days with no activity. 2. Also close the stale issue in 5 days. PRs are not closed automatically as of now. * Update stale.yml * Update stale.yml * Updating trigger to run on a schedule only. * Update and rename stale.yml to defaultLabels.yml (#153) * Users/balaga gayatri/defaultlabels (#158) * Update and rename stale.yml to defaultLabels.yml * Update defaultLabels.yml * Update defaultLabels.yml * Update defaultLabels.yml Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rabeea Emad <[email protected]> Co-authored-by: Jason Freeberg <[email protected]> Co-authored-by: aksm-ms <[email protected]> Co-authored-by: Teo Voinea <[email protected]> Co-authored-by: Usha N <[email protected]> Co-authored-by: xaxle <[email protected]> Co-authored-by: Shivangi Mittal <[email protected]> Co-authored-by: 20shivangi <[email protected]> Co-authored-by: Amruta Kawade <[email protected]> Co-authored-by: Zainudeen V K <[email protected]> Co-authored-by: Usha N <[email protected]> Co-authored-by: Martin Costello <[email protected]> Co-authored-by: Kanchan Verma <[email protected]> * updating lib files * kubeapp lib files * resolving conflicts Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rabeea Emad <[email protected]> Co-authored-by: Jason Freeberg <[email protected]> Co-authored-by: aksm-ms <[email protected]> Co-authored-by: Teo Voinea <[email protected]> Co-authored-by: Usha N <[email protected]> Co-authored-by: xaxle <[email protected]> Co-authored-by: Shivangi Mittal <[email protected]> Co-authored-by: 20shivangi <[email protected]> Co-authored-by: Amruta Kawade <[email protected]> Co-authored-by: Zainudeen V K <[email protected]> Co-authored-by: Usha N <[email protected]> Co-authored-by: Martin Costello <[email protected]> Co-authored-by: Kanchan Verma <[email protected]> * Users/balaga gayatri/multi container master (#171) * added multicontainer support for linux * resolve conflicts * Update PublishProfileWebAppValidator.js * Update SpnLinuxContainerWebAppValidator.js * Update SpnWindowsContainerWebAppValidator.js * Update SpnWindowsWebAppValidator.js * Update WebAppContainerDeployment.js * Update Validations.js * Update Validations.js * Update PublishProfileWebAppContainerDeploymentProvider.js * Update PublishProfileContainerWebAppValidator.js * added necessary conditions * Adding commit message to zipDeploy payload (#127) * added commit message to zipDeploy payload * added commit message to zipDeploy payload * Added input field to the action.yml * removed node_modules * removed nodemodules * Removed node_modules from source code * Users/balaga gayatri/commit message fix (#125) * added commit message to zipDeploy payload * added commit message to zipDeploy payload * Added input field to the action.yml * removed node_modules * removed nodemodules * Removed node_modules from source code * removed taking input through action.yml * removed node_modules after testing * Users/balaga gayatri/commit message fix (#126) * added commit message to zipDeploy payload without action.yml input * Update action.yml * Removing formatting * removed whitespaces * adding node_modules * adding node_modules * debugging for head_commit message * debugging for head_commit message * debugging for head_commit message * debugging for head_commit message * Added empty commit message for non push github event * Update main.ts * Update main.ts * Users/balaga gayatri/commit message fix (#131) * Added empty commit message for non push github event * changes * added node_modules * node_modules * updated lib file * whitespace changes * Bump ws from 7.3.1 to 7.4.6 (#155) Bumps [ws](https://github.com/websockets/ws) from 7.3.1 to 7.4.6. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](websockets/ws@7.3.1...7.4.6) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump hosted-git-info from 2.8.8 to 2.8.9 (#139) Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9. - [Release notes](https://github.com/npm/hosted-git-info/releases) - [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md) - [Commits](npm/hosted-git-info@v2.8.8...v2.8.9) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump lodash from 4.17.20 to 4.17.21 (#137) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.20...4.17.21) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Create CODEOWNERS (#175) * Remove windowsContainerAppNotAllowedForPublishProfile validator. (#134) * Fix typo in command name `az ad sp create-for-rbac` (#179) Everything else refers to `sp` so I assume this is just a typo. * Fix README to mention Windows container can also publish via publishing profile (#185) * Remove windowsContainerAppNotAllowedForPublishProfile validator. * Fix readme to mention Windows container can also publish using publishing profile. * Users/balaga gayatri/prchecksrepo (#163) * Create intergation-tests.yml * Create InvokeL2RepoDispatchEvent.sh * Update intergation-tests.yml * Update InvokeL2RepoDispatchEvent.sh * Update intergation-tests.yml * Delete InvokeL2RepoDispatchEvent.sh * Delete intergation-tests.yml * Create webapp_dotnet_windows_code.yml * Update webapp_dotnet_windows_code.yml * Update webapp_dotnet_windows_code.yml * Update webapp_dotnet_windows_code.yml * Update webapp_dotnet_windows_code.yml * Create webapp_python_linux_code.yml * Delete webapp_dotnet_windows_code.yml * Update webapp_python_linux_code.yml * Update webapp_python_linux_code.yml * Update webapp_python_linux_code.yml * Update webapp_python_linux_code.yml * Update webapp_python_linux_code.yml * Update webapp_python_linux_code.yml * Update webapp_python_linux_code.yml * Update webapp_python_linux_code.yml * Update webapp_python_linux_code.yml * Update and rename webapp_python_linux_code.yml to pr_check_webapp_dotnet_windows.yml * Update pr_check_webapp_dotnet_windows.yml * Update pr_check_webapp_dotnet_windows.yml Added automation test environment * Update pr_check_webapp_dotnet_windows.yml * Update pr_check_webapp_dotnet_windows.yml * Update pr_check_webapp_dotnet_windows.yml * Update pr_check_webapp_dotnet_windows.yml * Update pr_check_webapp_dotnet_windows.yml * Update pr_check_webapp_dotnet_windows.yml * Create pr_check_windows_container_pubprofile.yml * Update pr_check_windows_container_pubprofile.yml * Update pr_check_windows_container_pubprofile.yml * Update pr_check_windows_container_pubprofile.yml * Update pr_check_webapp_dotnet_windows.yml * Update pr_check_windows_container_pubprofile.yml Co-authored-by: Kanika Pasrija <[email protected]> * Rename CODEOWNERS to CODEOWNER * Delete CODEOWNER * Create CODEOWNERS * Rename bug-report---feature-request.md to bug-report-feature-request.md * Update pr_check_webapp_dotnet_windows.yml * Update pr_check_windows_container_pubprofile.yml * Update pr_check_webapp_dotnet_windows.yml * Update pr_check_windows_container_pubprofile.yml * Update README.md * Trim commit message to not include description * Updating the workflow files with new resources (#249) * Update pr_check_windows_container_pubprofile.yml * Update pr_check_webapp_dotnet_windows.yml * Update pr_check_windows_container_pubprofile.yml (#250) * add sample github action yml for go apps on azure app services * Added node version 16 in action.yml at line no.35 (#264) This change was done for below warning message. : Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: azure/webapps-deploy@v2 * Update @actions/core (#258) * Limit the length of commit message (#271) * Limit the length of commit message * Refactor * Added comment Co-authored-by: Akshay Kumar <[email protected]> * Bump decode-uri-component from 0.2.0 to 0.2.2 (#276) Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. - [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases) - [Commits](SamVerschueren/decode-uri-component@v0.2.0...v0.2.2) --- updated-dependencies: - dependency-name: decode-uri-component dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add kind *api* to actionparameters.ts (#107) * Changed the actions-secret-parser version (#280) * Adding Resource Group As Optional Param (#283) * Adding Resource Group As Optional Param * changed the appservice web client version * Bump json5 from 2.1.3 to 2.2.3 (#281) Bumps [json5](https://github.com/json5/json5) from 2.1.3 to 2.2.3. - [Release notes](https://github.com/json5/json5/releases) - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md) - [Commits](json5/json5@v2.1.3...v2.2.3) --- updated-dependencies: - dependency-name: json5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update README.md (#287) * Update README.md * Update README.md * Correcting the typo in go.yml * adding node modules change --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Sumiran Aggarwal <[email protected]> Co-authored-by: asranja <[email protected]> Co-authored-by: Ashish Ranjan <[email protected]> Co-authored-by: UshaN <[email protected]> Co-authored-by: Eavanshi Arora <[email protected]> Co-authored-by: Eavanshi Arora <[email protected]> Co-authored-by: harshitha1112 <[email protected]> Co-authored-by: aksm-ms <[email protected]> Co-authored-by: Orta Therox <[email protected]> Co-authored-by: Arjun Gupta <[email protected]> Co-authored-by: Amruta Kawade <[email protected]> Co-authored-by: Amruta Kawade <[email protected]> Co-authored-by: Gustav Tonér <[email protected]> Co-authored-by: Kraig Brockschmidt <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rabeea Emad <[email protected]> Co-authored-by: Jason Freeberg <[email protected]> Co-authored-by: Teo Voinea <[email protected]> Co-authored-by: Shivangi Mittal <[email protected]> Co-authored-by: 20shivangi <[email protected]> Co-authored-by: Zainudeen V K <[email protected]> Co-authored-by: Usha N <[email protected]> Co-authored-by: Martin Costello <[email protected]> Co-authored-by: Kanchan Verma <[email protected]> Co-authored-by: Balaga Gayatri <[email protected]> Co-authored-by: chunye <[email protected]> Co-authored-by: Thibaud Colas <[email protected]> Co-authored-by: Kanika Pasrija <[email protected]> Co-authored-by: Nathan Bierema <[email protected]> Co-authored-by: Shubham Jain <[email protected]> Co-authored-by: Shubham Jain <[email protected]> Co-authored-by: chetan-vaidya3d <[email protected]> Co-authored-by: erik-itland <[email protected]> Co-authored-by: kumaraksh1 <[email protected]> Co-authored-by: Akshay Kumar <[email protected]> Co-authored-by: Clemens Wältken <[email protected]> Co-authored-by: Surender Singh Malik <[email protected]>
1 parent 6524a53 commit 2087f42

39 files changed

+911
-555
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @kaverma @kanika1894 @BALAGA-GAYATRI @pulkitaggarwl
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Bug Report / Feature Request
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: need-to-triage
6+
assignees: ''
7+
8+
---
9+
10+

.github/issue-label-bot.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
label-alias:
2+
bug: 'bug'
3+
feature_request: 'enhancement'
4+
question: 'question'

.github/workflows/ci.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- master
5+
6+
jobs:
7+
build_test_job:
8+
name: 'Build and test job'
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [windows-latest, ubuntu-latest, macos-latest]
13+
steps:
14+
15+
- name: 'Checking out repo code'
16+
uses: actions/checkout@v2
17+
18+
- name: 'Validate build'
19+
run: |
20+
npm install
21+
npm run build
22+
23+
- name: 'Run L0 tests'
24+
run: |
25+
npm run test

.github/workflows/defaultLabels.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: setting-default-labels
2+
3+
# Controls when the action will run.
4+
on:
5+
schedule:
6+
- cron: "0 0/3 * * *"
7+
8+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
9+
jobs:
10+
build:
11+
# The type of runner that the job will run on
12+
runs-on: ubuntu-latest
13+
14+
# Steps represent a sequence of tasks that will be executed as part of the job
15+
steps:
16+
- uses: actions/stale@v3
17+
name: Setting issue as idle
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.'
21+
stale-issue-label: 'idle'
22+
days-before-stale: 14
23+
days-before-close: -1
24+
operations-per-run: 100
25+
exempt-issue-labels: 'backlog'
26+
27+
- uses: actions/stale@v3
28+
name: Setting PR as idle
29+
with:
30+
repo-token: ${{ secrets.GITHUB_TOKEN }}
31+
stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.'
32+
stale-pr-label: 'idle'
33+
days-before-stale: 14
34+
days-before-close: -1
35+
operations-per-run: 100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: pr_check_webapp_dotnet_windows
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- releases/*
8+
paths-ignore:
9+
- '**.md'
10+
pull_request_target:
11+
branches:
12+
- master
13+
- 'releases/*'
14+
15+
# CONFIGURATION
16+
# For help, go to https://github.com/Azure/Actions
17+
#
18+
# 1. Set up the following secrets in your repository:
19+
# AZURE_WEBAPP_PUBLISH_PROFILE
20+
#
21+
# 2. Change these variables for your configuration:
22+
env:
23+
AZURE_WEBAPP_NAME: dotnetwebappdeploy # set this to your application's name
24+
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
25+
NUGET_VERSION: '5.3.1' # set this to the node version to use
26+
27+
jobs:
28+
run-integration-test:
29+
environment: automation test
30+
name: Validate PR
31+
strategy:
32+
matrix:
33+
os: [windows-latest]
34+
runs-on: ${{ matrix.os }}
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v2
38+
39+
- uses: actions/checkout@master
40+
with:
41+
repository: Azure-Samples/dotnet-sample
42+
ref: master
43+
path: 'dotnetsample'
44+
45+
- name: Install Nuget
46+
uses: nuget/setup-nuget@v1
47+
with:
48+
nuget-version: ${{ env.NUGET_VERSION}}
49+
- name: NuGet to restore dependencies as well as project-specific tools that are specified in the project file
50+
run: |
51+
pwd
52+
cd dotnetsample
53+
nuget restore
54+
55+
- name: Add msbuild to PATH
56+
uses: microsoft/[email protected]
57+
58+
- name: Run MSBuild
59+
run: msbuild .\dotnetsample\SampleWebApplication.sln
60+
61+
- uses: actions/checkout@v2
62+
name: Checkout from PR branch
63+
with:
64+
repository: ${{ github.event.pull_request.head.repo.full_name }}
65+
path: 'webapps-deploy'
66+
ref: ${{ github.event.pull_request.head.ref }}
67+
68+
- name: Installing dependencies and building latest changes
69+
run: |
70+
cd webapps-deploy
71+
npm install
72+
npm run build
73+
74+
- name: Azure authentication
75+
uses: azure/login@v1
76+
with:
77+
creds: ${{ secrets.AZURE_WEBAPP_SPN }}
78+
79+
- name: 'Deploy to Azure WebApp'
80+
uses: ./webapps-deploy/
81+
with:
82+
app-name: ${{ env.AZURE_WEBAPP_NAME }} # Replace with your app name
83+
#publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} # Define secret variable in repository settings as per action documentation
84+
package: 'D:\a\webapps-deploy\webapps-deploy\dotnetsample\SampleWebApplication\'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: pr_check_windows_container_publishprofile
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- releases/*
8+
paths-ignore:
9+
- '**.md'
10+
pull_request_target:
11+
branches:
12+
- master
13+
- 'releases/*'
14+
15+
env:
16+
AZURE_WEBAPP_NAME: wincontainerswebapp # set this to your application's name
17+
CONTAINER_REGISTRY: webdeploytestscontainerregistry.azurecr.io # set secret with Container Registry URL, example : xyz.azurecr.io
18+
19+
jobs:
20+
build-and-deploy:
21+
environment: automation test
22+
name: Validate PR
23+
runs-on: windows-latest
24+
steps:
25+
# checkout the repo
26+
- name: 'Checkout Github Action'
27+
uses: actions/checkout@master
28+
with:
29+
repository: GH-ACE/python_container_App
30+
ref: main
31+
path: 'python_container_App'
32+
33+
- name: Azure authentication
34+
uses: azure/login@v1
35+
with:
36+
creds: ${{ secrets.AZURE_WEBAPP_SPN }}
37+
38+
- uses: azure/docker-login@v1
39+
with:
40+
login-server: webdeploytestscontainerregistry.azurecr.io
41+
username: ${{ secrets.WEBDEPLOY_TEST_ACR_USERNAME }}
42+
password: ${{ secrets.WEBDEPLOY_TEST_ACR_PASSWORD }}
43+
44+
- run: |
45+
pwd
46+
cd python_container_App
47+
docker pull mcr.microsoft.com/azure-app-service/windows/canary:5.0-nanoserver
48+
docker tag mcr.microsoft.com/azure-app-service/windows/canary:5.0-nanoserver ${{ env.CONTAINER_REGISTRY }}/containerwebapp/canaryreplica:latest
49+
docker push ${{ env.CONTAINER_REGISTRY }}/containerwebapp/canaryreplica:latest
50+
51+
- name: Set Web App ACR authentication
52+
uses: Azure/appservice-settings@v1
53+
with:
54+
app-name: ${{ env.AZURE_WEBAPP_NAME }}
55+
app-settings-json: |
56+
[
57+
{
58+
"name": "DOCKER_REGISTRY_SERVER_PASSWORD",
59+
"value": "${{ secrets.WEBDEPLOY_TEST_ACR_PASSWORD }}",
60+
"slotSetting": false
61+
},
62+
{
63+
"name": "DOCKER_REGISTRY_SERVER_URL",
64+
"value": "https://${{ env.CONTAINER_REGISTRY }}",
65+
"slotSetting": false
66+
},
67+
{
68+
"name": "DOCKER_REGISTRY_SERVER_USERNAME",
69+
"value": "${{ secrets.WEBDEPLOY_TEST_ACR_USERNAME }}",
70+
"slotSetting": false
71+
}
72+
]
73+
- uses: actions/checkout@v2
74+
name: Checkout from PR branch
75+
with:
76+
repository: ${{ github.event.pull_request.head.repo.full_name }}
77+
path: 'webapps-deploy'
78+
ref: ${{ github.event.pull_request.head.ref }}
79+
80+
- name: Installing dependencies and building latest changes in action
81+
run: |
82+
cd webapps-deploy
83+
npm install
84+
npm run build
85+
86+
- name: 'Deploy to Azure WebApp'
87+
uses: ./webapps-deploy/
88+
with:
89+
app-name: ${{ env.AZURE_WEBAPP_NAME }} # Replace with your app name
90+
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
91+
images: ${{ env.CONTAINER_REGISTRY }}/containerwebapp/canaryreplica:latest

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,22 @@ NOTE: you must have write permissions to the repository in question. If you're u
1818

1919
## Dependencies on other GitHub Actions
2020

21+
<<<<<<< HEAD
2122
* [Checkout](https://github.com/actions/checkout) Checkout your Git repository content into GitHub Actions agent.
23+
=======
24+
* [Checkout](https://github.com/actions/checkout) your Git repository content into GitHub Actions agent.
25+
>>>>>>> origin/master
2226
* Authenticate using [Azure Web App Publish Profile](https://github.com/projectkudu/kudu/wiki/Deployment-credentials#site-credentials-aka-publish-profile-credentials) or using the [Azure Login Action](https://github.com/Azure/login). Examples of both are given later in this article.
2327

2428
The action supports using publish profile for [Azure Web Apps](https://azure.microsoft.com/services/app-service/web/) (both Windows and Linux) and [Azure Web Apps for Containers](https://azure.microsoft.com/services/app-service/containers/) (both Windows and Linux).
2529

2630
**Note: As of October 2020, Linux web apps will need the app setting `WEBSITE_WEBDEPLOY_USE_SCM` set to `true` before downloading the publish profile from the portal. This requirement will be removed in the future.**
2731

2832
The action does not support multi-container scenario with publish profile.
33+
<<<<<<< HEAD
34+
=======
35+
* Enable [Run from Package](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package#enable-running-from-package), otherwise remote build will take time and the deployment will take longer.
36+
>>>>>>> origin/master
2937
3038
* To build app code in a specific language based environment, use setup actions:
3139
* [Setup DotNet](https://github.com/actions/setup-dotnet) Sets up a dotnet environment by optionally downloading and caching a version of dotnet by SDK version and adding to PATH.
@@ -58,7 +66,7 @@ For example, if You want to deploy a Java WAR based app, You can follow the link
5866
| Python | [python.yml](https://github.com/Azure/actions-workflow-samples/tree/master/AppService/python-webapp-on-azure.yml) |
5967
| PHP | [php.yml](https://github.com/Azure/actions-workflow-samples/blob/master/AppService/php-webapp-on-azure.yml)
6068
| DOCKER | [docker.yml](https://github.com/Azure/actions-workflow-samples/blob/master/AppService/docker-webapp-container-on-azure.yml) |
61-
| GO | [go.yml](https://github.com/Azure/actions-workflow-samples/blob/master/AppService/go-webapp-on-azure.yml.yml) |
69+
| GO | [go.yml](https://github.com/Azure/actions-workflow-samples/blob/master/AppService/go-webapp-on-azure.yml) |
6270

6371
### Sample workflow to build and deploy a Node.js Web app to Azure using publish profile
6472

0 commit comments

Comments
 (0)