diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml new file mode 100644 index 0000000000..e63d1ce9ce --- /dev/null +++ b/.github/workflows/build-push.yml @@ -0,0 +1,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}}