diff --git a/.gitignore b/.gitignore index 0d35c52..46a9ca9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,39 @@ +*.dll +*.exe +.DS_Store +example.tf +terraform.tfplan +terraform.tfstate +bin/ +dist/ +modules-dev/ +/pkg/ +website/.vagrant +website/.bundle +website/build +website/node_modules +.vagrant/ +*.backup +./*.tfstate +.terraform/ +*.log +*.bak +*~ +.*.swp .idea -backups *.iml -terraform-provider-delphix -build_instructions.txt -code_snippets.sh \ No newline at end of file +*.test +*.iml +*.terraform.lock.hcl +website/vendor + +# Test exclusions +!command/test-fixtures/**/*.tfstate +!command/test-fixtures/**/.terraform/ + +# Keep windows files with windows line endings +*.winfile eol=crlf + +# examples executions +./examples/environment/*.terraform* +./examples/vdb/*.terraform* diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..c9e9dfd --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,59 @@ +# Visit https://goreleaser.com for documentation on how to customize this +# behavior. +env: + - PROVIDER_VERSION=1.0-beta +before: + hooks: + # this is just an example and not a requirement for provider building/publishing + - go mod tidy +snapshot: + name_template: '{{ .Env.PROVIDER_VERSION }}' +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={{.Env.PROVIDER_VERSION}} -X main.commit={{.Commit}}' + goos: + - freebsd + - windows + - linux + - darwin + goarch: + - amd64 + - '386' + - arm + - arm64 + ignore: + - goos: darwin + goarch: '386' + binary: terraform-provider-delphix + hooks: + post: + - cmd: ./dev_copy.sh + env: + - CP_PATH={{ .Path }} + - CP_TARGET={{ .Target }} + - CP_VERSION={{ .Env.PROVIDER_VERSION }} +archives: +- format: zip + name_template: '{{ .ProjectName }}_{{ .Env.PROVIDER_VERSION }}_{{ .Os }}_{{ .Arch }}' +checksum: + extra_files: + - glob: 'terraform-registry-manifest.json' + name_template: '{{ .ProjectName }}_{{ .Env.PROVIDER_VERSION }}_manifest.json' + name_template: '{{ .ProjectName }}_{{ .Env.PROVIDER_VERSION }}_SHA256SUMS' + algorithm: sha256 +release: + extra_files: + - glob: 'terraform-registry-manifest.json' + name_template: '{{ .ProjectName }}_{{ .Env.PROVIDER_VERSION }}_manifest.json' + # If you want to manually examine the release before its live, uncomment this line: + # draft: true +changelog: + skip: true \ No newline at end of file diff --git a/merge-content.zip b/merge-content.zip deleted file mode 100644 index ebfb512..0000000 Binary files a/merge-content.zip and /dev/null differ