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

chore(ci): GHA - simplify build versioning #927

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

kskewes-sf
Copy link
Contributor

@kskewes-sf kskewes-sf commented Mar 16, 2022

  • collapse version info gathering steps into single build_variables step
  • collapse version info parts into single string and use everywhere.
  • use short git sha: (git rev-parse --short HEAD)

Note build.yml versioning is not compatible with Debian package
building as gradle plugin enforces ^[0-9]+.
We don't publish master branch or release-* branches to GAR apt
repository though.
Prefixing the version with <tag>-dev- or something and publishing Debian
packages is possible but may pollute apt-cache policy spinnaker-rosco output
and overall be unnecessary with regular releases.

@kskewes-sf kskewes-sf marked this pull request as draft March 16, 2022 03:01
@kskewes-sf kskewes-sf marked this pull request as ready for review March 16, 2022 04:08
- collapse version info gathering steps into single `build_variables` step
- collapse version info parts into single string and use everywhere.
- use short git sha: `(git rev-parse --short HEAD)`

Note `build.yml` versioning is not compatible with Debian package
building as gradle plugin enforces `^[0-9]+`.
We don't publish master branch or release-* branches to GAR apt
repository though.
Prefixing the version with `<tag>-dev-` or something and publishing Debian
packages is possible but may pollute `apt-cache policy spinnaker-rosco` output
and overall be unnecessary with regular releases.
@dbyron-sf dbyron-sf merged commit 0dcab33 into spinnaker:master Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants