From dbc7da241c0b90eccbacfb1a5baff23299c420c1 Mon Sep 17 00:00:00 2001 From: Pavan Kalluri Date: Sun, 24 Aug 2025 19:30:15 +0530 Subject: [PATCH 1/2] Create nginx-dry-run.yml --- .github/workflows/nginx-dry-run.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/nginx-dry-run.yml diff --git a/.github/workflows/nginx-dry-run.yml b/.github/workflows/nginx-dry-run.yml new file mode 100644 index 0000000..f7950ad --- /dev/null +++ b/.github/workflows/nginx-dry-run.yml @@ -0,0 +1,30 @@ +name: "NGINX Config Dry-Run Validation" + +on: + pull_request: + paths: + - "test/configs/**" + +jobs: + dry-run-validation: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Run NGINX dry-run validation + uses: ./ # local action in this repo; replace with nginxinc/nginx-for-azure-deploy-action@feature/dry-run if pushed to branch + with: + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + resource-group-name: ${{ secrets.AZURE_RESOURCE_GROUP }} + nginx-deployment-name: ${{ secrets.NGINX_SERVICE_NAME }} + nginx-config-directory-path: test/configs/ + nginx-root-config-file: nginx.conf + dry-run: true + + - name: Upload dry-run logs + if: always() + uses: actions/upload-artifact@v3 + with: + name: nginx-dry-run-report + path: dry-run.log From 2f7a4ddb2b91657ae231d4fb2a5ac8c960460712 Mon Sep 17 00:00:00 2001 From: Pavan Kalluri Date: Sun, 24 Aug 2025 19:30:47 +0530 Subject: [PATCH 2/2] Delete .github/workflows/nginx-dry-run.yml --- .github/workflows/nginx-dry-run.yml | 30 ----------------------------- 1 file changed, 30 deletions(-) delete mode 100644 .github/workflows/nginx-dry-run.yml diff --git a/.github/workflows/nginx-dry-run.yml b/.github/workflows/nginx-dry-run.yml deleted file mode 100644 index f7950ad..0000000 --- a/.github/workflows/nginx-dry-run.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: "NGINX Config Dry-Run Validation" - -on: - pull_request: - paths: - - "test/configs/**" - -jobs: - dry-run-validation: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Run NGINX dry-run validation - uses: ./ # local action in this repo; replace with nginxinc/nginx-for-azure-deploy-action@feature/dry-run if pushed to branch - with: - subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - resource-group-name: ${{ secrets.AZURE_RESOURCE_GROUP }} - nginx-deployment-name: ${{ secrets.NGINX_SERVICE_NAME }} - nginx-config-directory-path: test/configs/ - nginx-root-config-file: nginx.conf - dry-run: true - - - name: Upload dry-run logs - if: always() - uses: actions/upload-artifact@v3 - with: - name: nginx-dry-run-report - path: dry-run.log