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

Features/GitHub actions #9

Merged
merged 10 commits into from
Apr 22, 2021
Merged

Features/GitHub actions #9

merged 10 commits into from
Apr 22, 2021

Conversation

mpuckett159
Copy link
Owner

Add GitHub actions for linting/gofmting and building Docker images to Dockerhub. Also had to move some go related files around to enable things to work properly.

Moving to a release system that will trigger Dockerhub builds on release so we have a bit more separation and more appropriate pipeline to go from local changes to live site updates. Will need to migrate the DO App Platform settings to point to Dockerhub after this and a build is confirmed.

In addition to Dockerhub builds I've also implemented gofmt and golangci-lint jobs in the GitHub Actions so we can get some formatting and linting going in this build pipeline.

I also migrated the go.mod/go.sum files into their proper location inside the actual module and updated the settings so that things would work properly for that.
Moving to a release system that will trigger Dockerhub builds on release so we have a bit more separation and more appropriate pipeline to go from local changes to live site updates. Will need to migrate the DO App Platform settings to point to Dockerhub after this and a build is confirmed.

In addition to Dockerhub builds I've also implemented gofmt and golangci-lint jobs in the GitHub Actions so we can get some formatting and linting going in this build pipeline.

I also migrated the go.mod/go.sum files into their proper location inside the actual module and updated the settings so that things would work properly for that.
For some reason the golangci-linter doesn't actually output file/line info in the logs in the GitHub Action, which... what? You can get around this by specifying output tabbed apparently.
Mostly just not doing proper error checking on some of my functions. Main confusing thing was the pruner.go for loop. S1000 dictates that I should not use a select with a single use case and should instead just use a "simple channel send/receive" which basically just means if the channel I'm watching gets a message kick something off I guess. I'm really not entirely sure but it compiles and runs and golangci-lint is happy so w/e.
Apparently gofmt as a github action doesn't really do anything so removing that and I'll just add that to my local githook.
These are all changes from gofmt, so basically whitespace changes.
@mpuckett159 mpuckett159 linked an issue Apr 22, 2021 that may be closed by this pull request
@mpuckett159 mpuckett159 merged commit 2ebe8d2 into master Apr 22, 2021
@mpuckett159 mpuckett159 deleted the features/github-actions branch April 22, 2021 22:20
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.

Move to Dockerhub build to DO App Platform pipeline
1 participant