Skip to content

Commit

Permalink
added new action to build + push to azure
Browse files Browse the repository at this point in the history
  • Loading branch information
lamATnginx committed Jun 18, 2024
1 parent 36d8120 commit eed9d94
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit eed9d94

Please sign in to comment.