Skip to content

Commit eed9d94

Browse files
committed
added new action to build + push to azure
1 parent 36d8120 commit eed9d94

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build-push.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
branch:
5+
description: "Source branch to deploy"
6+
required: false
7+
default: "main"
8+
type: string
9+
environment:
10+
description: "Determines where build gets pushed to"
11+
required: false
12+
default: "preview"
13+
type: choice
14+
options:
15+
- preview
16+
- dev
17+
- staging
18+
- prod
19+
push:
20+
branches:
21+
- main
22+
paths:
23+
- nginx-gateway-fabric/site/content
24+
pull_request:
25+
branches:
26+
- "*"
27+
jobs:
28+
call-docs-build-push:
29+
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@main
30+
with:
31+
production_url_path: "/nginx-gateway-fabric"
32+
preview_url_path: "/previews/nginx-gateway-fabric/"
33+
docs_source_path: "./public/"
34+
cdn_content_path: "/*"
35+
doc_type: "hugo"
36+
secrets:
37+
AZURE_CREDENTIALS: ${{secrets.AZURE_CREDENTIALS}}
38+
AZURE_KEY_VAULT: ${{secrets.AZURE_KEY_VAULT}}

0 commit comments

Comments
 (0)