Skip to content

Commit e02950b

Browse files
authored
Merge pull request #43 from nginxinc/revert-41-main
Revert "Point to longevity basic nginxaas deployment"
2 parents 3ededcd + b0a07f5 commit e02950b

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

.github/workflows/azure-pipeline-build.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v2
1313

1414
- name: Set up Node.js
15-
uses: actions/setup-node@v4
15+
uses: actions/setup-node@v2
1616
with:
17-
node-version: '20'
17+
node-version: '14'
1818

1919
- name: Install dependencies and build
2020
run: |
@@ -27,11 +27,10 @@ jobs:
2727
2828
- name: Create extension
2929
run: |
30-
cd azure-pipeline
31-
tfx extension create --manifest-globs ./vss-extension.json
30+
tfx extension create --manifest-globs ./azure-pipeline/vss-extension.json
3231
3332
- name: Upload VSIX file
34-
uses: actions/upload-artifact@v4
33+
uses: actions/upload-artifact@v2
3534
with:
3635
name: VSIX file
3736
path: ./azure-pipeline/*.vsix

.github/workflows/github-action-test-nginxaas-deploy.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
- cron: "0 20 * * *"
77

88
env:
9-
NGINX_DEPLOYMENT_NAME: n4a-long-eastus2-basic-ngx
9+
NGINX_DEPLOYMENT_NAME: github-action-test-dep
1010
NGINX_TRANSFORMED_CONFIG_DIR_PATH: /etc/nginx/
1111
NGINX_ROOT_CONFIG_FILE: nginx.conf
12-
TEST_RESOURCE_GROUP_NAME: n4a-long-eastus2-workload
13-
NGINX_CERT_NAME: n4a-long-eastus2-basic-crt
12+
TEST_RESOURCE_GROUP_NAME: github-action-test
13+
NGINX_CERT_NAME: github-action-test-crt
1414
NGINX_VAULT_NAME: nlbtest-customer
1515

1616
permissions:
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: "Checkout repository"
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v2
2626
- name: "AZ CLI Login"
2727
uses: azure/login@v2
2828
with:
@@ -47,7 +47,7 @@ jobs:
4747
- name: "Validate config update - single file"
4848
shell: bash
4949
run: |
50-
curl -s -o /dev/null -D - http://${{ secrets.NGINX_DEPLOYMENT_FQDN }} | grep "Github-Run-Id: $GITHUB_RUN_ID"
50+
curl -s -o /dev/null -D - http://${{ secrets.NGINX_DEPLOYMENT_IP }} | grep "Github-Run-Id: $GITHUB_RUN_ID"
5151
- name: "Update config - multi file"
5252
shell: bash
5353
run: |
@@ -61,20 +61,21 @@ jobs:
6161
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
6262
resource-group-name: $TEST_RESOURCE_GROUP_NAME
6363
nginx-deployment-name: $NGINX_DEPLOYMENT_NAME
64-
nginx-deployment-location: "eastus2"
64+
nginx-deployment-location: "westcentralus"
6565
nginx-config-directory-path: github-action/test/configs/multi/
6666
nginx-root-config-file: $NGINX_ROOT_CONFIG_FILE
6767
transformed-nginx-config-directory-path: $NGINX_TRANSFORMED_CONFIG_DIR_PATH
68-
nginx-certificates: '[{"certificateName": "github-action-test-crt", "keyvaultSecret": "https://$NGINX_VAULT_NAME.vault.azure.net/secrets/$NGINX_CERT_NAME", "certificateVirtualPath": "/etc/nginx/ssl/$GITHUB_RUN_ID/my-cert.crt", "keyVirtualPath": "/etc/nginx/ssl/$GITHUB_RUN_ID/my-cert.key" } ]'
68+
nginx-certificates: '[{"certificateName": "$NGINX_CERT_NAME", "keyvaultSecret": "https://$NGINX_VAULT_NAME.vault.azure.net/secrets/$NGINX_CERT_NAME", "certificateVirtualPath": "/etc/nginx/ssl/$GITHUB_RUN_ID/my-cert.crt", "keyVirtualPath": "/etc/nginx/ssl/$GITHUB_RUN_ID/my-cert.key" } ]'
69+
6970
- name: "Validate config update"
7071
shell: bash
7172
run: |
72-
curl -s -o /dev/null -D - http://${{ secrets.NGINX_DEPLOYMENT_FQDN }} | grep "Github-Run-Id: $GITHUB_RUN_ID"
73+
curl -s -o /dev/null -D - http://${{ secrets.NGINX_DEPLOYMENT_IP }} | grep "Github-Run-Id: $GITHUB_RUN_ID"
7374
- name: "Validate certificate update"
7475
uses: azure/cli@v2
7576
with:
7677
inlineScript: |
7778
echo "-----BEGIN CERTIFICATE-----" > /tmp/$GITHUB_RUN_ID.tmp
7879
az keyvault certificate show --vault-name $NGINX_VAULT_NAME -n $NGINX_CERT_NAME | jq -r .cer | cat >> /tmp/$GITHUB_RUN_ID.tmp
7980
echo "-----END CERTIFICATE-----" >> /tmp/$GITHUB_RUN_ID.tmp
80-
curl -s -o /dev/null -D - https://${{ secrets.NGINX_DEPLOYMENT_FQDN }} --cacert /tmp/$GITHUB_RUN_ID.tmp | grep "Github-Run-Id: $GITHUB_RUN_ID"
81+
curl -s -o /dev/null -D - https://${{ secrets.NGINX_DEPLOYMENT_IP }} --cacert /tmp/$GITHUB_RUN_ID.tmp | grep "Github-Run-Id: $GITHUB_RUN_ID"

azure-pipeline/src/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
}
7575
],
7676
"execution": {
77-
"Node20_1": {
77+
"Node10": {
7878
"target": "dist/index.js"
7979
}
8080
}

azure-pipeline/vss-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"id": "Microsoft.VisualStudio.Services"
1010
}
1111
],
12-
"description": "This extension provides a streamlined solution for synchronizing NGINX configuration files with Azure deployments.",
12+
"description": "This extension provides a streamlined solution for synchronizing NGINX configuration files with Azure deployments. Designed to support Azure DevOps pipelines, it automates the process of packaging and uploading NGINX configurations to Azure, enhancing efficiency, version control, and security. Ideal for continuous integration and deployment workflows, it simplifies the management of NGINXaaS configurations within the Azure ecosystem.",
1313
"categories": [
1414
"Azure Pipelines"
1515
],

0 commit comments

Comments
 (0)