Skip to content

Commit

Permalink
Merge pull request #103 from Staffbase/techdocs-azure
Browse files Browse the repository at this point in the history
Use Azure as default publisher for TechDocs
  • Loading branch information
axdotl committed Mar 9, 2023
2 parents 3f848c1 + e03020c commit ec86f71
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/template_techdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ name: TechDocs
on:
workflow_call:
inputs:
publisher-type:
required: false
type: string
default: 'azureBlobStorage'
storage-name:
required: false
type: string
default: 'staffbase-backstage-techdocs'
aws-region:
required: false
type: string
Expand All @@ -23,6 +31,10 @@ on:
required: false
aws-secret-access-key:
required: false
azure-account-name:
required: false
azure-access-key:
required: false

jobs:
techdocs:
Expand All @@ -39,9 +51,11 @@ jobs:
with:
entity-kind: ${{ inputs.entity-kind }}
entity-name: ${{ inputs.entity-name }}
publisher-type: 'awsS3'
storage-name: 'staffbase-backstage-techdocs'
publisher-type: ${{ inputs.publisher-type }}
storage-name: ${{ inputs.storage-name }}
aws-region: ${{ inputs.aws-region }}
aws-access-key-id: ${{ secrets.aws-access-key-id }}
aws-secret-access-key: ${{ secrets.aws-secret-access-key }}
azure-account-name: ${{ secrets.azure-account-name }}
azure-access-key: ${{ secrets.azure-access-key }}
additional-plugins: ${{ inputs.additional-plugins }}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ jobs:
# optional: list of space separated additional python plugins to install
additional-plugins: 'mkdocs-minify-plugin\>=0.3'
secrets:
# optional: specifies an aws access key associated with an IAM user or role
aws-access-key-id: ${{ secrets.TECHDOCS_AWS_ACCESS_KEY_ID }}
# optional: specifies the secret key associated with the access key
aws-secret-access-key: ${{ secrets.TECHDOCS_AWS_SECRET_ACCESS_KEY }}
# optional: specifies an Azure Storage account name
azure-account-name: ${{ secrets.TECHDOCS_AWS_ACCESS_KEY_ID }}
# optional: specifies the access key associated with the storage account
azure-access-key: ${{ secrets.TECHDOCS_AZURE_ACCESS_KEY }}
```
</details>

Expand Down

0 comments on commit ec86f71

Please sign in to comment.