Skip to content

Commit

Permalink
Releases/v2.2.6 (#293)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
1 parent 6524a53 commit 2087f42
Show file tree
Hide file tree
Showing 39 changed files with 911 additions and 555 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @kaverma @kanika1894 @BALAGA-GAYATRI @pulkitaggarwl
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report-feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Bug Report / Feature Request
about: Create a report to help us improve
title: ''
labels: need-to-triage
assignees: ''

---


4 changes: 4 additions & 0 deletions .github/issue-label-bot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
label-alias:
bug: 'bug'
feature_request: 'enhancement'
question: 'question'
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
pull_request:
branches:
- master

jobs:
build_test_job:
name: 'Build and test job'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:

- name: 'Checking out repo code'
uses: actions/checkout@v2

- name: 'Validate build'
run: |
npm install
npm run build
- name: 'Run L0 tests'
run: |
npm run test
35 changes: 35 additions & 0 deletions .github/workflows/defaultLabels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: setting-default-labels

# Controls when the action will run.
on:
schedule:
- cron: "0 0/3 * * *"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/stale@v3
name: Setting issue as idle
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.'
stale-issue-label: 'idle'
days-before-stale: 14
days-before-close: -1
operations-per-run: 100
exempt-issue-labels: 'backlog'

- uses: actions/stale@v3
name: Setting PR as idle
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.'
stale-pr-label: 'idle'
days-before-stale: 14
days-before-close: -1
operations-per-run: 100
84 changes: 84 additions & 0 deletions .github/workflows/pr_check_webapp_dotnet_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
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: dotnetwebappdeploy # 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: ${{ github.event.pull_request.head.repo.full_name }}
path: 'webapps-deploy'
ref: ${{ github.event.pull_request.head.ref }}

- 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\'
91 changes: 91 additions & 0 deletions .github/workflows/pr_check_windows_container_pubprofile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: pr_check_windows_container_publishprofile

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

env:
AZURE_WEBAPP_NAME: wincontainerswebapp # set this to your application's name
CONTAINER_REGISTRY: webdeploytestscontainerregistry.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: webdeploytestscontainerregistry.azurecr.io
username: ${{ secrets.WEBDEPLOY_TEST_ACR_USERNAME }}
password: ${{ secrets.WEBDEPLOY_TEST_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.WEBDEPLOY_TEST_ACR_PASSWORD }}",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_URL",
"value": "https://${{ env.CONTAINER_REGISTRY }}",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_USERNAME",
"value": "${{ secrets.WEBDEPLOY_TEST_ACR_USERNAME }}",
"slotSetting": false
}
]
- uses: actions/checkout@v2
name: Checkout from PR branch
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
path: 'webapps-deploy'
ref: ${{ github.event.pull_request.head.ref }}

- 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
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,22 @@ NOTE: you must have write permissions to the repository in question. If you're u

## Dependencies on other GitHub Actions

<<<<<<< HEAD
* [Checkout](https://github.com/actions/checkout) Checkout your Git repository content into GitHub Actions agent.
=======
* [Checkout](https://github.com/actions/checkout) your Git repository content into GitHub Actions agent.
>>>>>>> origin/master
* 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.

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).

**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.**

The action does not support multi-container scenario with publish profile.
<<<<<<< HEAD
=======
* 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.
>>>>>>> origin/master
* To build app code in a specific language based environment, use setup actions:
* [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.
Expand Down Expand Up @@ -58,7 +66,7 @@ For example, if You want to deploy a Java WAR based app, You can follow the link
| Python | [python.yml](https://github.com/Azure/actions-workflow-samples/tree/master/AppService/python-webapp-on-azure.yml) |
| PHP | [php.yml](https://github.com/Azure/actions-workflow-samples/blob/master/AppService/php-webapp-on-azure.yml)
| DOCKER | [docker.yml](https://github.com/Azure/actions-workflow-samples/blob/master/AppService/docker-webapp-container-on-azure.yml) |
| GO | [go.yml](https://github.com/Azure/actions-workflow-samples/blob/master/AppService/go-webapp-on-azure.yml.yml) |
| GO | [go.yml](https://github.com/Azure/actions-workflow-samples/blob/master/AppService/go-webapp-on-azure.yml) |

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

Expand Down
Loading

0 comments on commit 2087f42

Please sign in to comment.