From eed9d941d5b6eff34115ed7103093d98edebafe3 Mon Sep 17 00:00:00 2001 From: Lam Nguyen Date: Tue, 18 Jun 2024 14:31:14 -0700 Subject: [PATCH] added new action to build + push to azure --- .github/workflows/build-push.yml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build-push.yml diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml new file mode 100644 index 0000000000..405ead67ab --- /dev/null +++ b/.github/workflows/build-push.yml @@ -0,0 +1,38 @@ +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: "./public/" + cdn_content_path: "/*" + doc_type: "hugo" + secrets: + AZURE_CREDENTIALS: ${{secrets.AZURE_CREDENTIALS}} + AZURE_KEY_VAULT: ${{secrets.AZURE_KEY_VAULT}}