Skip to content

Commit a73c054

Browse files
authored
Merge branch 'main' into main
2 parents e89ccaf + 0f7ff8f commit a73c054

File tree

470 files changed

+5507
-66062
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

470 files changed

+5507
-66062
lines changed

.github/workflows/coveo.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
generate-coveo-search-token:
99
name: Generate Coveo Search Tokens
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
actions: read # for 8398a7/action-slack
1114
strategy:
1215
matrix:
1316
include:
@@ -25,6 +28,8 @@ jobs:
2528
run: sudo apt-get install jq
2629

2730
- name: Generating token for ${{matrix.env_name}} ...
31+
id: generate-token
32+
continue-on-error: true
2833
env:
2934
COVEO_API_KEY: ${{secrets[matrix.env_api_key]}}
3035
COVEO_SEARCH_HUB: "HUB_ES_Nginx_Docs_And_Org"
@@ -61,13 +66,37 @@ jobs:
6166
echo "{\"token\": \"$SEARCH_TOKEN\", \"org_id\": \"${{matrix.env_coveo_org_id}}\"}" > coveo/search_token.json
6267
6368
- name: Upload token for ${{matrix.env_name}}
69+
if: ${{ steps.generate-token.outcome == 'success' }}
6470
uses: actions/upload-artifact@v4
6571
with:
6672
name: ${{matrix.env_name}}
6773
path: "./"
6874

75+
- name: Send a notification if token generation step failed
76+
if: ${{ steps.generate-token.outcome == 'failure' }}
77+
uses: 8398a7/action-slack@77eaa4f1c608a7d68b38af4e3f739dcd8cba273e # v3.19.0
78+
with:
79+
status: custom
80+
custom_payload: |
81+
{
82+
username: 'Github',
83+
mention: 'channel',
84+
attachments: [{
85+
title: '[${{ github.event.repository.full_name }}] Coveo Token Generation Failed (${{matrix.env_name}} environment)',
86+
color: 'danger',
87+
fields: [{
88+
title: 'Pipeline URL',
89+
value: '<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>',
90+
short: false
91+
}]
92+
}]
93+
}
94+
env:
95+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DOCS_INCIDENT }}
96+
97+
6998
push-tokens-to-azure:
70-
name: Push coveo search tokens to Azure
99+
name: Batch push coveo search tokens to Azure
71100
runs-on: ubuntu-latest
72101
needs: generate-coveo-search-token
73102
steps:
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Prune stale branches
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '30 1 * * *' # run every day at 01:30 UTC
6+
7+
jobs:
8+
stale-branches:
9+
runs-on: ubuntu-latest
10+
env:
11+
ORG: nginx
12+
REPO: documentation
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
permissions:
15+
contents: write
16+
steps:
17+
- name: Prune all stale branches
18+
run: |
19+
HAS_MORE="true"
20+
21+
while [ "$HAS_MORE" == "true" ]; do
22+
RESPONSE=$(curl -L -s \
23+
-X GET \
24+
-H "Accept: application/json" \
25+
-s "https://github.com/${{env.ORG}}/${{env.REPO}}/branches/stale")
26+
27+
HAS_MORE=$(echo "$RESPONSE" | jq -r '.payload.has_more')
28+
BRANCHES=$(echo "$RESPONSE" | jq -r '.payload.branches[].name')
29+
30+
for BRANCH in $BRANCHES; do
31+
echo "Deleting branch $BRANCH..."
32+
DELETE_RESPONSE=$(curl -L -s \
33+
-X DELETE \
34+
-H "Accept: application/vnd.github+json" \
35+
-H "Authorization: Bearer ${{env.GITHUB_TOKEN}}" \
36+
-H "X-GitHub-Api-Version: 2022-11-28" \
37+
https://api.github.com/repos/${{env.ORG}}/${{env.REPO}}/git/refs/heads/$BRANCH)
38+
echo "Delete response for branch $BRANCH: $DELETE_RESPONSE"
39+
done
40+
done
41+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{< banner "note" "Policy parameter reference" >}}
2+
3+
You can explore the parameters for each F5 WAF for NGINX feature on the [Policy parameter reference]({{< ref "/waf/policies/parameter-reference.md" >}}) page.
4+
5+
This page was previously referred to as the "Declarative Policy".
6+
7+
{{< /banner >}}

content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Learn how to deliver, manage, and protect your applications using F5 NGINX produ
4343
{{</card-section>}}
4444

4545
{{<card-section showAsCards="true" title="F5 NGINX as a Service">}}
46-
{{<card title="F5 NGINXaaS for Azure" titleUrl="/nginxaas/azure/" brandIcon="NGINX-for-Azure-product-icon.svg" isLanding="true">}}
46+
{{<card title="F5 NGINXaaS for Azure" titleUrl="/nginxaas/azure/" brandIcon="F5-NGINXaaS-icon.svg" isLanding="true">}}
4747
Infrastructure-as-a-Service (IaaS) version of NGINX Plus for your Microsoft Azure application stack.
4848
{{</card >}}
4949
{{</card-section>}}

content/controller/_index.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

content/controller/admin-guides/_index.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

content/controller/admin-guides/backup-restore/_index.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

content/controller/admin-guides/backup-restore/backup-restore-cluster-config.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

content/controller/admin-guides/backup-restore/backup-restore-embedded-config-db.md

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)