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

Add version flag and build amd64 and arm64 targets #86

Merged
merged 8 commits into from
Oct 25, 2021
Merged

Conversation

cpanato
Copy link
Contributor

@cpanato cpanato commented Oct 19, 2021

Summary

  • add version flag
  • update to go 1.17
  • update some ci tools
  • build amd64 and arm64 targets
  • build container images for amd64 and arm64 and make a manifest for that
  • fix golangci lints

version demo:

$ ./bin/mattermost-push-proxy --version
GitVersion:    v5.22.5-7-g35e4ca9
GitCommit:     35e4ca962a1a44b151387e27455b3bf013b711fe
GitTreeState:  clean
BuildDate:     '2021-10-19T12:33:02Z'
GoVersion:     go1.17.2
Compiler:      gc
Platform:      darwin/amd64

Ticket Link

JIRA https://mattermost.atlassian.net/browse/DOPS-22

@cpanato cpanato added the 1: Dev Review Requires review by a core commiter label Oct 19, 2021
@cpanato
Copy link
Contributor Author

cpanato commented Oct 19, 2021

gibing some love to this project and also preparing to the ownership migration to cloud sre team, that will run push proxy in a container, so preparing all the autobahn for future usage

Makefile Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
Copy link
Contributor

@enahum enahum left a comment

Choose a reason for hiding this comment

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

other than the PHONY comment it lgtm

@cpanato cpanato force-pushed the version branch 13 times, most recently from 61cbd41 to e412903 Compare October 25, 2021 10:08
Copy link
Member

@spirosoik spirosoik left a comment

Choose a reason for hiding this comment

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

minor few comments

.circleci/config.yml Show resolved Hide resolved

package-linux-amd64:
Copy link
Member

Choose a reason for hiding this comment

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

better to make this a script and just change the flags accordingly so it can be repeatable and avoid copy/paste in two places in case we change something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agree, maybe we can do in a follow up

Copy link
Member

Choose a reason for hiding this comment

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

yeah let's plan for this

main.go Outdated Show resolved Hide resolved
main.go Show resolved Hide resolved
Copy link
Member

@spirosoik spirosoik left a comment

Choose a reason for hiding this comment

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

lgtm, let's fix the script too in a follow up PR

@cpanato cpanato merged commit c8affef into master Oct 25, 2021
@cpanato cpanato deleted the version branch October 25, 2021 11:51
@cpanato cpanato added 2: Reviews Complete All reviewers have approved the pull request and removed 1: Dev Review Requires review by a core commiter labels Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Reviews Complete All reviewers have approved the pull request
Projects
None yet
3 participants