-
Notifications
You must be signed in to change notification settings - Fork 110
40 lines (39 loc) · 1011 Bytes
/
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
name: Build + Push to Azure
on:
workflow_dispatch:
inputs:
branch:
description: "Source branch to deploy"
required: false
default: "main"
type: string
environment:
description: "Determines where build gets pushed to"
required: false
default: "preview"
type: choice
options:
- preview
- dev
- staging
- prod
push:
branches:
- main
paths:
- nginx-gateway-fabric/site/content
pull_request:
branches:
- "*"
jobs:
call-docs-build-push:
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@main
with:
production_url_path: "/nginx-gateway-fabric"
preview_url_path: "/previews/nginx-gateway-fabric/"
docs_source_path: "./site/content/"
docs_build_path: "./site/"
doc_type: "hugo"
secrets:
AZURE_CREDENTIALS: ${{secrets.AZURE_CREDENTIALS}}
AZURE_KEY_VAULT: ${{secrets.AZURE_KEY_VAULT}}