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

Are you able to make releases through CI? #33

Closed
NickLarsenNZ opened this issue Jul 29, 2019 · 7 comments · Fixed by #70
Closed

Are you able to make releases through CI? #33

NickLarsenNZ opened this issue Jul 29, 2019 · 7 comments · Fixed by #70

Comments

@NickLarsenNZ
Copy link
Contributor

It is very difficult to use dep in our organisation due to overzealous security policies on proxies breaking the git clones.
It would be nice to be able to curl or wget a versioned artifact and be on my way.

@NickLarsenNZ
Copy link
Contributor Author

I'm willing to help, is there a preferred CI tool you would like to use? Travis/Circle?

@saiprasannasastry
Copy link
Contributor

are you talking about using these tools as an alternative for merge on github or to integrate with terraform official?

@saiprasannasastry
Copy link
Contributor

if it is a replacement of dep i would come back to you in a couple of days

@NickLarsenNZ
Copy link
Contributor Author

NickLarsenNZ commented Jul 29, 2019

I was referring to building releases on merges to the master branch so that people could directly download the provider binary.

For example, the Okta provider: https://github.com/articulate/terraform-provider-okta/releases
And TravisCI pipeline: https://github.com/articulate/terraform-provider-okta/blob/master/.travis.yml

Personally, replacing dep with Go Modules would be great. Not sure how other's feel.

@jkraj
Copy link
Collaborator

jkraj commented Jul 29, 2019

@saiprasannasastry It is better to have each release artifact as downloadable in release page. we can do that then no need to change dep

@NickLarsenNZ
Copy link
Contributor Author

I'm thinking we just use:

  • TravisCI to run it
  • Auto bump the semantic version on master commits (PR merges), for example
  • Gox to build the artifacts for each platform
  • Goreleaser to push the artifacts back to Github

@NickLarsenNZ
Copy link
Contributor Author

NickLarsenNZ commented Mar 15, 2020

Since I last commented, Github Actions has become available. I have been using it for other Go projects. Would you be happy for me to breate a PR with some workflows to aid in building and releasing?

You can see some examples here: https://github.com/NickLarsenNZ/terrain/tree/master/.github/workflows

I noticed some merges to master have not been tagged or released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants