-
Notifications
You must be signed in to change notification settings - Fork 52
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
release: move to goreleaser/actions for releases #113
Conversation
5de927d
to
145f78d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the update. I have a few suggestions but this is otherwise looks good.
.github/workflows/release.yml
Outdated
on: | ||
push: | ||
tags: | ||
- "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will create a release for all tags. Let’s update it to only create a release for version tags v1.0.0.
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
We also recently added permissions to the actions in Packer to limit the scope of a GitHub token. Let’s add it here as well.
permissions:
# Allow creating GitHub release
contents: write
.github/release.yml
Outdated
@@ -0,0 +1,23 @@ | |||
changelog: | |||
exclude: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There have been a few plugin releases where the dependency bumps have been important call outs but excluded because of this config. Let’s remove it for the SDK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand why that'd be important yeah.
Since this was pretty much adapted from another plugin, and the issue may also apply there, do you think it'd make sense to replicate on other packer plugins too?
Prior to this commit, new releases were done through a CircleCI that would invoke a script to tag and release the latest version of the repository on Github. This is now replaced by goreleaser, which will do the same, and trigger the CHANGELOG generation for the next version of the SDK.
145f78d
to
eabdd35
Compare
This is a good question. At first I was a bit reluctant because the plugins have more dependencies then the SDK. So I was concerned about noise. But since it automatically generated it may not be bad to have them in the changelog. And if it becomes noise we can adjust per plugin. What do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look great!
I think it can be done as you suggest yes, if we find the output too noisy after a while we can revert the change on a per-plugin basis. If we're not too sure about the volume of noise for every plugin, we can first test on a subset of them, see how things go for a while, and decide whether or not we want that rolled on all our other plugins? From what I can see, this should be easily scriptable, we can roll this change on plugins soon if we want to try that |
@lbajolet-hashicorp lets make it happen. I would prefer to do all plugins in one shot. Can you script this up and open the PRs please. I can review and merge. |
Yessir, will do! |
Prior to this commit, new releases were done through a CircleCI that
would invoke a script to tag and release the latest version of the
repository on Github.
This is now replaced by goreleaser, which will do the same, and trigger
the CHANGELOG generation for the next version of the SDK.