Skip to content

Adds configuration to retain client IP information #49

Adds configuration to retain client IP information

Adds configuration to retain client IP information #49

Workflow file for this run

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
pull_request:
branches:
- "*"
paths:
- "site/**"
concurrency:
group: ${{ github.ref_name }}-docs-push
cancel-in-progress: true
permissions:
contents: read
jobs:
vars:
runs-on: ubuntu-22.04
outputs:
azure_creds: ${{ steps.vars.outputs.defined }}
steps:
- name: Check if variable is set
id: vars
env:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS_DOCS }}
if: "${{ env.AZURE_CREDENTIALS != '' }}"
run: echo "defined=true" >> $GITHUB_OUTPUT
call-docs-build-push:
needs: [vars]
if: ${{ github.event.repository.fork == false && needs.vars.outputs.azure_creds == 'true' }}
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@a733e84a262f8d5d885bfc8eac80bc85928da322 # v1.0.3
permissions:
pull-requests: write # needed to write preview url comment to PR
contents: read
with:
production_url_path: "/nginx-gateway-fabric"
preview_url_path: "/previews/nginx-gateway-fabric"
docs_source_path: "public/nginx-gateway-fabric"
docs_build_path: "./site"
doc_type: "hugo"
environment: ${{ inputs.environment }}
secrets:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS_DOCS }}
AZURE_KEY_VAULT: ${{ secrets.AZURE_KEY_VAULT_DOCS }}