Skip to content

Commit 0f3fd71

Browse files
committed
prepare for release
1 parent 3a797a1 commit 0f3fd71

File tree

8 files changed

+103
-281
lines changed

8 files changed

+103
-281
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ website/vendor
2929
# Test exclusions
3030
!command/test-fixtures/**/*.tfstate
3131
!command/test-fixtures/**/.terraform/
32+
/terraform-provider-null

.goreleaser.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Visit https://goreleaser.com for documentation on how to customize this
2+
# behavior.
3+
before:
4+
hooks:
5+
# this is just an example and not a requirement for provider building/publishing
6+
- go mod tidy
7+
builds:
8+
- env:
9+
# goreleaser does not work with CGO, it could also complicate
10+
# usage by users in CI/CD systems like Terraform Cloud where
11+
# they are unable to install libraries.
12+
- CGO_ENABLED=0
13+
mod_timestamp: '{{ .CommitTimestamp }}'
14+
flags:
15+
- -trimpath
16+
ldflags:
17+
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
18+
goos:
19+
- freebsd
20+
- windows
21+
- linux
22+
- darwin
23+
goarch:
24+
- amd64
25+
- '386'
26+
- arm
27+
- arm64
28+
ignore:
29+
- goos: darwin
30+
goarch: '386'
31+
- goos: freebsd
32+
goarch: arm64
33+
binary: '{{ .ProjectName }}_v{{ .Version }}'
34+
archives:
35+
- format: zip
36+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
37+
checksum:
38+
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
39+
algorithm: sha256
40+
signs:
41+
- artifacts: checksum
42+
args:
43+
# if you are using this is a GitHub action or some other automated pipeline, you
44+
# need to pass the batch flag to indicate its not interactive.
45+
- "--batch"
46+
- "--local-user"
47+
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
48+
- "--output"
49+
- "${signature}"
50+
- "--detach-sign"
51+
- "${artifact}"
52+
release:
53+
# Visit your project's GitHub Releases page to publish this release.
54+
draft: true
55+
changelog:
56+
skip: true

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
## 1.0.1 (Unreleased)
1+
## 1.1.0 (July 31, 2020)
2+
3+
* Add null_resource.inputs, outputs and values
4+
5+
NOTES:
6+
7+
* Migrate to terraform SDK v1
8+
* Provider was forked and this version is no longer maintained by Terraform team
9+
210
## 1.0.0 (September 26, 2017)
311

412
* No changes from 0.1.0; just adjusting to [the new version numbering scheme](https://www.hashicorp.com/blog/hashicorp-terraform-provider-versioning/).

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,22 @@ care and other solutions preferred when available.
2424

2525
See documentation for resources:
2626

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

2929
and for data sources:
3030

31-
- [null_data_source](docs/data_source.html.markdown)
31+
- [null_data_source](docs/data-sources/null_data_source.md)
32+
33+
Making a release
34+
----------------
35+
36+
From the [upstream documentation](https://www.terraform.io/docs/registry/providers/publishing.html):
37+
38+
- `export GPG_FINGERPRINT=01230FD4CC29DE17`
39+
- `export GITHUB_TOKEN=...`
40+
- Cache passphrase with `gpg --armor --detach-sign --local-user $GPG_FINGERPRINT </dev/null`
41+
- Create tag: `git tag -s -u $GPG_FINGERPRINT vx.x.x`
42+
- Make release: `goreleaser release --rm-dist`
43+
44+
3245

docs/data_source.html.markdown renamed to docs/data-sources/null_data_source.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
---
2-
layout: "null"
3-
page_title: "Null Resource"
4-
sidebar_current: "docs-data-source"
5-
description: |-
6-
A resource that does nothing.
7-
---
8-
9-
# Null Resource
1+
# Null Data Source
2+
3+
*A data source that does nothing.*
104

115
The `null_data_source` data source implements the standard data source
126
lifecycle but does not interact with any external APIs.

docs/index.html.markdown renamed to docs/index.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
---
2-
layout: "null"
3-
page_title: "Provider: Null"
4-
sidebar_current: "docs-null-index"
5-
description: |-
6-
The null provider provides no-op constructs that can be useful helpers in tricky cases.
7-
---
8-
91
# Null Provider
102

3+
*The null provider provides no-op constructs that can be useful helpers in tricky cases.*
4+
115
The `null` provider is a rather-unusual provider that has constructs that
126
intentionally do nothing. This may sound strange, and indeed these constructs
137
do not need to be used in most cases, but they can be useful in various

docs/resource.html.markdown renamed to docs/resources/null_resource.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
---
2-
layout: "null"
3-
page_title: "Null Resource"
4-
sidebar_current: "docs-null-resource"
5-
description: |-
6-
A resource that does nothing.
7-
---
8-
91
# Null Resource
102

3+
*A resource that does nothingg*
4+
115
The `null_resource` resource implements the standard resource lifecycle but
126
takes no further action.
137

go.sum

Lines changed: 15 additions & 253 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)