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

fix: Migrate release process to github actions #135

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

dalehamel
Copy link
Member

This finishes up the work on #132, and is a re-do of #134

This completely replaces the existing Travis-based scripts with Github Actions.

  • Images now built by CI will receive a docker tag corresponding to their git tag
  • Go release is called when any tag is pushed, which will use Github Actions
    to create the Github Release, and uploads cross-compiled Go binaries to it.

In addition, the current process is generic enough to run on any personal fork also, making it trivial for others to deploy their own kubectl-trace should they desire to.

Here is a sample test release created by this on my own fork:

https://github.com/dalehamel/kubectl-trace/releases/tag/v0.1.1-pre3

While this does add git tags to the docker images, I think we still need a way to set what default image to use, probably via another LDFlag, like we do in the tests. We can follow up with this in another PR, as I think @fntlnz and @zqureshi have already discussed this. I think a good default behavior would just be to default to a version tag the same as the binary version, as that should already be pushed by the changes in this PR.

@dalehamel dalehamel requested review from fntlnz and leodido October 26, 2020 22:41
fntlnz
fntlnz previously approved these changes Oct 26, 2020
leodido
leodido previously approved these changes Oct 26, 2020
@zqureshi
Copy link
Contributor

I think a good default behavior would just be to default to a version tag the same as the binary version, as that should already be pushed by the changes in this PR.

I think that's a reasonable default and perhaps a flag to use the latest image might also be ok.

zqureshi
zqureshi previously approved these changes Oct 27, 2020
Copy link
Contributor

@zqureshi zqureshi left a comment

Choose a reason for hiding this comment

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

Thanks Dale!

@dalehamel dalehamel dismissed stale reviews from zqureshi, leodido, and fntlnz via 1f1c09e October 27, 2020 17:20
@dalehamel
Copy link
Member Author

@fntlnz @leodido i addressed @zqureshi 's review and lost approval, can you +1 again or merge

leodido
leodido previously approved these changes Oct 27, 2020
leodido
leodido previously approved these changes Oct 27, 2020
This completely replaces the existing Travis-based scripts with Github Actions.

- Images now built by CI will receive a docker tag corresponding to their git tag
- Go release is called when any tag is pushed, which will use Github Actions
  to create the Github Release, and uploads cross-compiled Go binaries to it.
@dalehamel dalehamel force-pushed the release-improvements branch from e40f246 to 221aa46 Compare October 28, 2020 03:35
Copy link
Member

@leodido leodido left a comment

Choose a reason for hiding this comment

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

n-th approval! 🤣

@leodido leodido merged commit 12e937f into iovisor:master Oct 28, 2020
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.

5 participants