logdna / terraform-provider-logdna

Terraform provider to simplify creation of views, preset alerts and other resources in LogDNA!
https://registry.terraform.io/providers/logdna/logdna/latest
MIT License
11 stars 12 forks source link

Rework build process for release #21

Closed mdeltito closed 3 years ago

mdeltito commented 3 years ago

refactor(build): switch to goreleaser for builds

This introduces goreleaser to the pipeline in order to more easily generate multiple signed builds, and distribute assets to GitHub as a release.

In addition, some tooling changes:

Ref: LOG-9606


fix(lint): remove dead code and check errors in test

This fixes two new linting issues:

Ref: LOG-9606


chore(deps): bump terraform-provider-sdk@2.7.0

This resolves an issue where tests were suddenly failing due to a broken transient dependency

Ref: LOG-9606

mdeltito commented 3 years ago

@charlesthomas @darinspivey I haven't been able to figure out a workaround for running a Jenkins build on a tag, I think we'll need to update the config for this repo (at least ephemerally, at first) to get this going. I can create a REL card for a long-term configuration change for repos that need this.

My plan is to get this merged into the feature branch, update the jenkins project, and then tag a pre-release from there e.g. v1.1.0-pre to verify the full process works end-to-end. Note that the current setup in this PR will still only create a draft release, which will require manual publishing to "release". That extra human step is a feature IMO since releases will be automatically pulled by the registry.