Skip to content

Commit

Permalink
prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
mildred committed Jul 31, 2020
1 parent 3a797a1 commit 0f3fd71
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 281 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ website/vendor
# Test exclusions
!command/test-fixtures/**/*.tfstate
!command/test-fixtures/**/.terraform/
/terraform-provider-null
56 changes: 56 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
before:
hooks:
# this is just an example and not a requirement for provider building/publishing
- go mod tidy
builds:
- env:
# goreleaser does not work with CGO, it could also complicate
# usage by users in CI/CD systems like Terraform Cloud where
# they are unable to install libraries.
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
goos:
- freebsd
- windows
- linux
- darwin
goarch:
- amd64
- '386'
- arm
- arm64
ignore:
- goos: darwin
goarch: '386'
- goos: freebsd
goarch: arm64
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
signs:
- artifacts: checksum
args:
# if you are using this is a GitHub action or some other automated pipeline, you
# need to pass the batch flag to indicate its not interactive.
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
# Visit your project's GitHub Releases page to publish this release.
draft: true
changelog:
skip: true
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
## 1.0.1 (Unreleased)
## 1.1.0 (July 31, 2020)

* Add null_resource.inputs, outputs and values

NOTES:

* Migrate to terraform SDK v1
* Provider was forked and this version is no longer maintained by Terraform team

## 1.0.0 (September 26, 2017)

* No changes from 0.1.0; just adjusting to [the new version numbering scheme](https://www.hashicorp.com/blog/hashicorp-terraform-provider-versioning/).
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,22 @@ care and other solutions preferred when available.

See documentation for resources:

- [null_resource](docs/resource.html.markdown)
- [null_resource](docs/resources/null_resource.md)

and for data sources:

- [null_data_source](docs/data_source.html.markdown)
- [null_data_source](docs/data-sources/null_data_source.md)

Making a release
----------------

From the [upstream documentation](https://www.terraform.io/docs/registry/providers/publishing.html):

- `export GPG_FINGERPRINT=01230FD4CC29DE17`
- `export GITHUB_TOKEN=...`
- Cache passphrase with `gpg --armor --detach-sign --local-user $GPG_FINGERPRINT </dev/null`
- Create tag: `git tag -s -u $GPG_FINGERPRINT vx.x.x`
- Make release: `goreleaser release --rm-dist`



Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
---
layout: "null"
page_title: "Null Resource"
sidebar_current: "docs-data-source"
description: |-
A resource that does nothing.
---

# Null Resource
# Null Data Source

*A data source that does nothing.*

The `null_data_source` data source implements the standard data source
lifecycle but does not interact with any external APIs.
Expand Down
10 changes: 2 additions & 8 deletions docs/index.html.markdown → docs/index.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
---
layout: "null"
page_title: "Provider: Null"
sidebar_current: "docs-null-index"
description: |-
The null provider provides no-op constructs that can be useful helpers in tricky cases.
---

# Null Provider

*The null provider provides no-op constructs that can be useful helpers in tricky cases.*

The `null` provider is a rather-unusual provider that has constructs that
intentionally do nothing. This may sound strange, and indeed these constructs
do not need to be used in most cases, but they can be useful in various
Expand Down
10 changes: 2 additions & 8 deletions docs/resource.html.markdown → docs/resources/null_resource.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
---
layout: "null"
page_title: "Null Resource"
sidebar_current: "docs-null-resource"
description: |-
A resource that does nothing.
---

# Null Resource

*A resource that does nothingg*

The `null_resource` resource implements the standard resource lifecycle but
takes no further action.

Expand Down
268 changes: 15 additions & 253 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit 0f3fd71

Please sign in to comment.