Skip to content

Commit 3471292

Browse files
BALAGA-GAYATRIdependabot[bot]raahmedJason Freebergaksm-ms
authored
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]>
1 parent 2906c2a commit 3471292

25 files changed

+1099
-935
lines changed
Lines changed: 10 additions & 0 deletions
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+
Lines changed: 35 additions & 0 deletions
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

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ NOTE: you must have write permissions to the repository in question. If you're u
2222
* 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.
2323

2424
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/) (Linux only).
25+
26+
**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.**
2527

2628
The action does not support multi-container scenario with publish profile.
2729

@@ -41,6 +43,7 @@ Note: Workflow samples with sample application code and deployment procedure for
4143

4244
For example, if You want to deploy a Java WAR based app, You can follow the link https://github.com/Azure-Samples/Java-application-petstore-ee7 in the sample workflow templates.
4345

46+
0. Review the pre-requisites outlined in the ["Dependencies on Other Github Actions"](https://github.com/Azure/webapps-deploy#dependencies-on-other-github-actions) section above.
4447
1. Create a web app in Azure using app service. Follow the tutorial [Azure Web Apps Quickstart](https://docs.microsoft.com/azure/app-service/overview#next-steps).
4548
2. Pick a template from the following table depends on your Azure web app **runtime** and place the template to `.github/workflows/` in your project repository.
4649
3. Change `app-name` to your Web app name created in the first step.
@@ -53,6 +56,7 @@ For example, if You want to deploy a Java WAR based app, You can follow the link
5356
| Java | [java_jar.yml](https://github.com/Azure/actions-workflow-samples/tree/master/AppService/java-jar-webapp-on-azure.yml) |
5457
| Java | [java_war.yml](https://github.com/Azure/actions-workflow-samples/tree/master/AppService/java-war-webapp-on-azure.yml) |
5558
| Python | [python.yml](https://github.com/Azure/actions-workflow-samples/tree/master/AppService/python-webapp-on-azure.yml) |
59+
| PHP | [php.yml](https://github.com/Azure/actions-workflow-samples/blob/master/AppService/php-webapp-on-azure.yml)
5660
| DOCKER | [docker.yml](https://github.com/Azure/actions-workflow-samples/blob/master/AppService/docker-webapp-container-on-azure.yml) |
5761

5862
### Sample workflow to build and deploy a Node.js Web app to Azure using publish profile
@@ -119,6 +123,7 @@ jobs:
119123
publish-profile: ${{ secrets.azureWebAppPublishProfile }}
120124
images: 'contoso.azurecr.io/nodejssampleapp:${{ github.sha }}'
121125
```
126+
Webapps deploy Actions is supported for the Azure public cloud as well as Azure government clouds ('AzureUSGovernment' or 'AzureChinaCloud') and Azure Stack ('AzureStack') Hub. Before running this action, login to the respective Azure Cloud using [Azure Login](https://github.com/Azure/login) by setting appropriate value for the `environment` parameter.
122127

123128
#### Configure deployment credentials:
124129

@@ -128,6 +133,7 @@ The above example uses app-level credentials i.e., publish profile file for depl
128133

129134
Follow the steps to configure the secret:
130135

136+
* **Note: As of October 2020, Linux web apps will need the app setting `WEBSITE_WEBDEPLOY_USE_SCM` set to `true` before continuing with next step of downloading the publish profile. This requirement will be removed in the future.**
131137
* Download the publish profile for the WebApp from the portal (Get Publish profile option)
132138
* While deploying to slot, download the publish profile for slot. Also specify the `slot-name` field with the name of the slot.
133139
* Define a new secret under your repository settings, Add secret menu
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
"use strict";
2-
Object.defineProperty(exports, "__esModule", { value: true });
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
"use strict";
2-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4-
return new (P || (P = Promise))(function (resolve, reject) {
5-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8-
step((generator = generator.apply(thisArg, _arguments || [])).next());
9-
});
10-
};
11-
Object.defineProperty(exports, "__esModule", { value: true });
12-
const Validations_1 = require("../Validations");
13-
const actionparameters_1 = require("../../actionparameters");
14-
class PublishProfileWebAppValidator {
15-
validate() {
16-
return __awaiter(this, void 0, void 0, function* () {
17-
let actionParams = actionparameters_1.ActionParameters.getActionParams();
18-
Validations_1.containerInputsNotAllowed(actionParams.images, actionParams.multiContainerConfigFile, true);
19-
Validations_1.validateAppDetails();
20-
Validations_1.startupCommandNotAllowed(actionParams.startupCommand);
21-
yield Validations_1.validatePackageInput();
22-
});
23-
}
24-
}
25-
exports.PublishProfileWebAppValidator = PublishProfileWebAppValidator;
1+
"use strict";
2+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4+
return new (P || (P = Promise))(function (resolve, reject) {
5+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8+
step((generator = generator.apply(thisArg, _arguments || [])).next());
9+
});
10+
};
11+
Object.defineProperty(exports, "__esModule", { value: true });
12+
const Validations_1 = require("../Validations");
13+
const actionparameters_1 = require("../../actionparameters");
14+
class PublishProfileWebAppValidator {
15+
validate() {
16+
return __awaiter(this, void 0, void 0, function* () {
17+
let actionParams = actionparameters_1.ActionParameters.getActionParams();
18+
Validations_1.containerInputsNotAllowed(actionParams.images, actionParams.multiContainerConfigFile, true);
19+
Validations_1.validateAppDetails();
20+
Validations_1.startupCommandNotAllowed(actionParams.startupCommand);
21+
yield Validations_1.validatePackageInput();
22+
});
23+
}
24+
}
25+
exports.PublishProfileWebAppValidator = PublishProfileWebAppValidator;
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
"use strict";
2-
Object.defineProperty(exports, "__esModule", { value: true });
3-
const Validations_1 = require("../Validations");
4-
const actionparameters_1 = require("../../actionparameters");
5-
class SpnLinuxContainerWebAppValidator {
6-
validate() {
7-
let actionParams = actionparameters_1.ActionParameters.getActionParams();
8-
Validations_1.packageNotAllowed(actionParams.packageInput);
9-
Validations_1.validateContainerInputs();
10-
}
11-
}
12-
exports.SpnLinuxContainerWebAppValidator = SpnLinuxContainerWebAppValidator;
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
const Validations_1 = require("../Validations");
4+
const actionparameters_1 = require("../../actionparameters");
5+
class SpnLinuxContainerWebAppValidator {
6+
validate() {
7+
let actionParams = actionparameters_1.ActionParameters.getActionParams();
8+
Validations_1.packageNotAllowed(actionParams.packageInput);
9+
Validations_1.validateContainerInputs();
10+
}
11+
}
12+
exports.SpnLinuxContainerWebAppValidator = SpnLinuxContainerWebAppValidator;
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
"use strict";
2-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4-
return new (P || (P = Promise))(function (resolve, reject) {
5-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8-
step((generator = generator.apply(thisArg, _arguments || [])).next());
9-
});
10-
};
11-
Object.defineProperty(exports, "__esModule", { value: true });
12-
const Validations_1 = require("../Validations");
13-
const actionparameters_1 = require("../../actionparameters");
14-
class SpnLinuxWebAppValidator {
15-
validate() {
16-
return __awaiter(this, void 0, void 0, function* () {
17-
let actionParams = actionparameters_1.ActionParameters.getActionParams();
18-
Validations_1.containerInputsNotAllowed(actionParams.images, actionParams.multiContainerConfigFile);
19-
yield Validations_1.validatePackageInput();
20-
});
21-
}
22-
}
23-
exports.SpnLinuxWebAppValidator = SpnLinuxWebAppValidator;
1+
"use strict";
2+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4+
return new (P || (P = Promise))(function (resolve, reject) {
5+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8+
step((generator = generator.apply(thisArg, _arguments || [])).next());
9+
});
10+
};
11+
Object.defineProperty(exports, "__esModule", { value: true });
12+
const Validations_1 = require("../Validations");
13+
const actionparameters_1 = require("../../actionparameters");
14+
class SpnLinuxWebAppValidator {
15+
validate() {
16+
return __awaiter(this, void 0, void 0, function* () {
17+
let actionParams = actionparameters_1.ActionParameters.getActionParams();
18+
Validations_1.containerInputsNotAllowed(actionParams.images, actionParams.multiContainerConfigFile);
19+
yield Validations_1.validatePackageInput();
20+
});
21+
}
22+
}
23+
exports.SpnLinuxWebAppValidator = SpnLinuxWebAppValidator;
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
"use strict";
2-
Object.defineProperty(exports, "__esModule", { value: true });
3-
const Validations_1 = require("../Validations");
4-
const actionparameters_1 = require("../../actionparameters");
5-
class SpnWindowsContainerWebAppValidator {
6-
validate() {
7-
let actionParams = actionparameters_1.ActionParameters.getActionParams();
8-
Validations_1.packageNotAllowed(actionParams.packageInput);
9-
Validations_1.startupCommandNotAllowed(actionParams.startupCommand);
10-
Validations_1.multiContainerNotAllowed(actionParams.multiContainerConfigFile);
11-
Validations_1.validateContainerInputs();
12-
}
13-
}
14-
exports.SpnWindowsContainerWebAppValidator = SpnWindowsContainerWebAppValidator;
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
const Validations_1 = require("../Validations");
4+
const actionparameters_1 = require("../../actionparameters");
5+
class SpnWindowsContainerWebAppValidator {
6+
validate() {
7+
let actionParams = actionparameters_1.ActionParameters.getActionParams();
8+
Validations_1.packageNotAllowed(actionParams.packageInput);
9+
Validations_1.startupCommandNotAllowed(actionParams.startupCommand);
10+
Validations_1.multiContainerNotAllowed(actionParams.multiContainerConfigFile);
11+
Validations_1.validateContainerInputs();
12+
}
13+
}
14+
exports.SpnWindowsContainerWebAppValidator = SpnWindowsContainerWebAppValidator;
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
"use strict";
2-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4-
return new (P || (P = Promise))(function (resolve, reject) {
5-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8-
step((generator = generator.apply(thisArg, _arguments || [])).next());
9-
});
10-
};
11-
Object.defineProperty(exports, "__esModule", { value: true });
12-
const Validations_1 = require("../Validations");
13-
const actionparameters_1 = require("../../actionparameters");
14-
class SpnWindowsWebAppValidator {
15-
validate() {
16-
return __awaiter(this, void 0, void 0, function* () {
17-
let actionParams = actionparameters_1.ActionParameters.getActionParams();
18-
Validations_1.containerInputsNotAllowed(actionParams.images, actionParams.multiContainerConfigFile);
19-
Validations_1.startupCommandNotAllowed(actionParams.startupCommand);
20-
yield Validations_1.validatePackageInput();
21-
});
22-
}
23-
}
24-
exports.SpnWindowsWebAppValidator = SpnWindowsWebAppValidator;
1+
"use strict";
2+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4+
return new (P || (P = Promise))(function (resolve, reject) {
5+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8+
step((generator = generator.apply(thisArg, _arguments || [])).next());
9+
});
10+
};
11+
Object.defineProperty(exports, "__esModule", { value: true });
12+
const Validations_1 = require("../Validations");
13+
const actionparameters_1 = require("../../actionparameters");
14+
class SpnWindowsWebAppValidator {
15+
validate() {
16+
return __awaiter(this, void 0, void 0, function* () {
17+
let actionParams = actionparameters_1.ActionParameters.getActionParams();
18+
Validations_1.containerInputsNotAllowed(actionParams.images, actionParams.multiContainerConfigFile);
19+
Validations_1.startupCommandNotAllowed(actionParams.startupCommand);
20+
yield Validations_1.validatePackageInput();
21+
});
22+
}
23+
}
24+
exports.SpnWindowsWebAppValidator = SpnWindowsWebAppValidator;

0 commit comments

Comments
 (0)