Skip to content

Commit

Permalink
Merge pull request #29 from deploymenttheory/feature-scaffolding
Browse files Browse the repository at this point in the history
Feature scaffolding - code organization + release pipeline added
  • Loading branch information
ShocOne authored Aug 5, 2024
2 parents 72b41f8 + 9759379 commit 7e6f46f
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 65 deletions.
22 changes: 0 additions & 22 deletions .azuredevops/PULL_REQUEST_TEMPLATE.md

This file was deleted.

20 changes: 0 additions & 20 deletions .azuredevops/pull_request_template/branches/dev.md

This file was deleted.

21 changes: 0 additions & 21 deletions .azuredevops/pull_request_template/branches/terraform.md

This file was deleted.

34 changes: 34 additions & 0 deletions .pipelines/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Terraform Provider Registry release workflow.
name: Terraform Provider Release

# This GitHub action creates a release when a tag that matches the pattern
# "v*" (e.g. v0.1.0) is created.
on:
push:
tags:
- 'v*'

jobs:
# Release for Partner and Community Providers
terraform-provider-release:
name: 'Terraform Provider Release'
uses: hashicorp/ghaction-terraform-provider-release/.github/workflows/[email protected]
secrets:
gpg-private-key: '${{ secrets.GPG_PRIVATE_KEY }}' # Your GPG private key
gpg-private-key-passphrase: '${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}' # Passphrase for your GPG key, if applicable
with:
release-notes: false # Set to true if you have release notes to include
setup-go-version: '1.22' # Specify the Go version needed
release-notes:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Generate Release Notes
run: sed -n -e "1{/# /d;}" -e "2{/^$/d;}" -e "/# $(git describe --abbrev=0 --exclude="$(git describe --abbrev=0 --match='v*.*.*' --tags)" --match='v*.*.*' --tags | tr -d v)/q;p" CHANGELOG.md > release-notes.txt
- uses: actions/upload-artifact@v4
with:
name: release-notes
path: release-notes.txt
retention-days: 1
3 changes: 1 addition & 2 deletions examples/microsoft365_provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ No resources.
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_auth_method"></a> [auth\_method](#input\_auth\_method) | The authentication method to use for the Entra ID application to authenticate the provider. Options: 'device\_code', 'client\_secret', 'client\_certificate', 'interactive\_browser', 'username\_password'. Can also be set using the `M365_AUTH_METHOD` environment variable. | `string` | `"client_secret"` | no |
| <a name="input_client_certificate_base64"></a> [client\_certificate\_base64](#input\_client\_certificate\_base64) | Base64 encoded PKCS#12 certificate bundle. For use when authenticating as a Service Principal using a Client Certificate. Can also be set using the `M365_CLIENT_CERTIFICATE_BASE64` environment variable. | `string` | `""` | no |
| <a name="input_client_certificate_file_path"></a> [client\_certificate\_file\_path](#input\_client\_certificate\_file\_path) | The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate. Can also be set using the `M365_CLIENT_CERTIFICATE_FILE_PATH` environment variable. | `string` | `""` | no |
| <a name="input_client_certificate"></a> [client\_certificate](#input\_client\_certificate) | The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate. Can also be set using the `M365_CLIENT_CERTIFICATE_FILE_PATH` environment variable. | `string` | `""` | no |
| <a name="input_client_certificate_password"></a> [client\_certificate\_password](#input\_client\_certificate\_password) | The password associated with the Client Certificate. For use when authenticating as a Service Principal using a Client Certificate. Can also be set using the `M365_CLIENT_CERTIFICATE_PASSWORD` environment variable. | `string` | `""` | no |
| <a name="input_client_id"></a> [client\_id](#input\_client\_id) | The client ID for the Entra ID application. This ID is generated when you register an application in the Entra ID (Azure AD) and can be found under App registrations > YourApp > Overview. Can also be set using the `M365_CLIENT_ID` environment variable. | `string` | `""` | no |
| <a name="input_client_secret"></a> [client\_secret](#input\_client\_secret) | The client secret for the Entra ID application. This secret is generated in the Entra ID (Azure AD) and is required for authentication flows such as client credentials and on-behalf-of flows. It can be found under App registrations > YourApp > Certificates & secrets. Required for client credentials and on-behalf-of flows. Can also be set using the `M365_CLIENT_SECRET` environment variable. | `string` | `""` | no |
Expand Down

0 comments on commit 7e6f46f

Please sign in to comment.