Skip to content

Commit 78e27e0

Browse files
authored
Merge pull request #29 from nginxinc/zaowang/add-azure-pipeline-repo
added azure_pipeline in this repo
2 parents 41c7cbd + 18c1090 commit 78e27e0

29 files changed

+750
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and Release for Azure Pipeline
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: '14'
18+
19+
- name: Install dependencies and build
20+
run: |
21+
cd ./azure-pipeline/src
22+
npm install
23+
cd ..
24+
25+
- name: Install tfx-cli
26+
run: |
27+
npm install -g tfx-cli
28+
29+
- name: Create extension
30+
run: |
31+
tfx extension create --manifest-globs vss-extension.json
32+
33+
- name: Upload VSIX file
34+
uses: actions/upload-artifact@v2
35+
with:
36+
name: VSIX file
37+
path: ./azure-pipeline/*.vsix

azure-pipeline/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
package-lock.json
4+
coverage

azure-pipeline/example.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
trigger:
2+
- main
3+
4+
pool:
5+
vmImage: ubuntu-latest
6+
7+
steps:
8+
- task: nginx-config-push@0
9+
inputs:
10+
serviceConnectionName: '(Enter the name of the service connection to Azure)'
11+
resourceGroupName: '(Enter the name of the Azure resource group of the deployment)'
12+
subscriptionId: '(Enter the Azure subscription ID of the deployment)'
13+
deploymentName: '(Enter the name for this deployment)'
14+
configDirectoryInRepo: '(Enter the relative path to the Nginx configuration directory in the repository)'
15+
configDirectoryInDeployment: '(Enter the target path for the Nginx configuration directory in the deployment environment, e.g., /etc/nginx)'
16+
rootConfigFileName: '(Enter the name of the root configuration file and make sure it is in the config directory. e.g., nginx.conf)'
5.63 KB
Loading
37 KB
Loading
82.7 KB
Loading
28.5 KB
Loading
30.7 KB
Loading
71 KB
Loading
43.6 KB
Loading

0 commit comments

Comments
 (0)