-
Notifications
You must be signed in to change notification settings - Fork 2k
51 lines (49 loc) · 1.42 KB
/
docs-build-push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build and deploy docs
on:
workflow_dispatch:
inputs:
environment:
description: "Environment to deploy to"
required: true
default: "preview"
type: choice
options:
- preview
- dev
- staging
- prod
hugo_theme_override:
description: 'Override hugo theme (leave blank to use latest version)'
required: false
default: ''
type: string
workflow_call:
inputs:
environment:
description: "Environment to deploy to"
required: true
type: string
pull_request:
branches:
- "*"
paths:
- "site/**"
permissions:
contents: read
jobs:
call-docs-build-push:
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@9c59fab05a8131f4d691ba6ea2b6a119f3ef832a # v1.0.7
permissions:
pull-requests: write # needed to write preview url comment to PR
contents: read
with:
production_url_path: "/nginx-ingress-controller"
preview_url_path: "/previews/nginx-ingress-controller"
docs_source_path: "public/nginx-ingress-controller"
docs_build_path: "./site"
doc_type: "hugo"
environment: ${{ inputs.environment }}
force_hugo_theme_version: ${{inputs.hugo_theme_override}}
secrets:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS_DOCS }}
AZURE_KEY_VAULT: ${{ secrets.AZURE_KEY_VAULT_DOCS }}