Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI and release process #12

Merged
merged 1 commit into from
Jul 13, 2020
Merged

CI and release process #12

merged 1 commit into from
Jul 13, 2020

Conversation

kmoe
Copy link
Member

@kmoe kmoe commented Jul 3, 2020

fixes #11

Based on the SDK CircleCI setup.

PR builds

On each PR, a matrix of builds is run:

  • build and test with Go 1.12
  • build and test with Go 1.14
  • gofmt and go vet checks (Go 1.14)
  • build and test on Windows

There is a macOS executor on CircleCI, but it doesn't have Go installed, and the architecture is sufficiently similar to Linux to leave this out for now. If we want to test all PRs on macOS we can add this later.

Release builds

As in the SDK, to release from master one needs only to update CHANGELOG.md to include a #x.y.z (Unreleased) line and then trigger the trigger_release build.

The release workflow will then:

  • run all build and test jobs as above
  • format the changelog
  • modify the version in tfinstall/version.go (this will be removed in use runtime.BuildInfo for version  #22)
  • commit and push changes as a bot user
  • tag the version

Git commits and tags are signed using the bot's GPG key.

The release workflow was tested by temporarily adding ci-release to its allowed branches, preparing the branch for a v0.0.1 release, and verifying the changes committed and pushed to this branch by the bot.

@kmoe kmoe added this to the v0.2.0 milestone Jul 3, 2020
@kmoe kmoe force-pushed the ci-release branch 2 times, most recently from 20a25b1 to ce2f18b Compare July 9, 2020 13:01
tfexec/terraform.go Outdated Show resolved Hide resolved
@kmoe kmoe force-pushed the ci-release branch 14 times, most recently from b04f8f6 to c0c5d15 Compare July 10, 2020 18:57
@kmoe kmoe requested a review from a team July 10, 2020 19:13
@kmoe kmoe marked this pull request as ready for review July 10, 2020 19:14
@kmoe kmoe merged commit 3d8f645 into master Jul 13, 2020
@kmoe kmoe deleted the ci-release branch July 13, 2020 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI and release process
3 participants