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 CRT release pipeline #85

Merged
merged 4 commits into from
May 17, 2022
Merged

Fix CRT release pipeline #85

merged 4 commits into from
May 17, 2022

Conversation

pglass
Copy link

@pglass pglass commented May 17, 2022

Changes proposed in this PR:

  • Include git commit sha in binary version
    $ ./consul-ecs version
    consul-ecs v0.4.1 (27011a1)
    
  • Stop using git describe for binary versions, since it relies on git tags existing before the release starts. With CRT, a tag is pushed only after promoting a release to production.
  • Do not send a Slack message on successful builds, to dev or stable-local. (Continue sending Slack messages for staging/production).
  • Fix docker image smoke test (version check)

How I've tested this PR:

In this commit. See this workflow, which ran the build workflow and a dev and staging promotion.

How I expect reviewers to test this PR:

👀

Checklist:

  • Tests added
  • CHANGELOG entry added

Paul Glass added 3 commits May 17, 2022 15:48
* This stops using `git describe` as part of the binary version. `git
  describe` finds the most recent git tag and was previously used as a
  way to set the version in build flags (`go build -ldflags ...`). With
  CRT, a git tag is not pushed until the promition to production so we
  need to set the release version explicitly upfront when the binary is
  built, rather than rely on a git tag.
* Update the build.yml to include the git commit sha in the released binary.
  Now, `consul-ecs version` includes the commit, `consul-ecs vX.Y.Z (<commit>)`,
  for released versions.
@pglass pglass requested review from a team, samsalisbury, alvin-huang and erichaberkorn and removed request for a team May 17, 2022 20:55
@pglass pglass changed the title Pglass/crt Fix CRT release pipeline May 17, 2022
@pglass pglass merged commit 0060ed3 into main May 17, 2022
@pglass pglass deleted the pglass/crt branch May 17, 2022 22:06
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.

2 participants