(Translated by https://www.hiragana.jp/)
Migrate to GitHub Actions by unguiculus · Pull Request #75 · helm/chart-releaser · GitHub
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

Migrate to GitHub Actions #75

Merged
merged 2 commits into from
Sep 1, 2020
Merged

Conversation

unguiculus
Copy link
Member

  • Move from CircleCI to GitHub Actions
  • Add release action that can be manually triggered which create a tag
    and the release. With that in place, we will no longer have to create
    and push tags locally in order to trigger the release build
  • Add Mage so all required steps can be run locally and in the GitHub
    workflow
  • Add golangci-lint and a check for missing license headers

Signed-off-by: Reinhard Nägele unguiculus@gmail.com

* Move from CircleCI to GitHub Actions
* Add release action that can be manually triggered which create a tag
  and the release. With that in place, we will no longer have to create
  and push tags locally in order to trigger the release build
* Add Mage so all required steps can be run locally and in the GitHub
  workflow
* Add golangci-lint and a check for missing license headers

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
@@ -54,9 +50,8 @@ func (p *Packager) CreatePackages() error {
if _, err := os.Stat(p.paths[i]); err != nil {
return err
}
deepcopier.Copy(p.config).To(settings)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed that. The linter complained because the error is not checked. I found out that it always returned an error. So I removed it. It was completely unnecessary as the settings parameter is not used by the Run method.

@helm-bot helm-bot added size/XL and removed size/L labels Aug 28, 2020
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
@unguiculus
Copy link
Member Author

For some reason, running go mod tidy in the GitHub workflow produced changes and dependencies were updated. I had to replicate these changes locally to make this build pass. I had never seen this happen. Locally it did not produce changes with the same Go version. Anyone knows what's going on here?

@unguiculus
Copy link
Member Author

In order to trigger the workflow before merging to master I created a PR against this branch in my fork:
https://github.com/unguiculus/chart-releaser/runs/1041788703?check_suite_focus=true

@scottrigby
Copy link
Member

It looks OK now, yes?

I tested go mod tidy in the same container that circle used to test with docker run --rm -it -w /app -v $(pwd):/app:cached cimg/go:1.14 sh and it was all fine (no diff).

@scottrigby
Copy link
Member

Copy link
Member

@scottrigby scottrigby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

In order to merge this, let's disable the required circle workflow as well, and enable the gh action as required after merge

@unguiculus unguiculus merged commit 7659cc2 into helm:master Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants