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

build: add installer commit hash to /etc/harvester-release.yaml (backport #791) #819

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 19, 2024

Problem:
It's not always obvious exactly which version of the harvester-installer code is included in a given build.

Solution:
Add the harvester-installer commit hash to /etc/harvester-release.yaml. For release builds, this should give us something like the following:

os: Harvester v1.3 (ff64884)

For local dev builds, it's a bit redundant, but I don't think there's any harm in this:

os: Harvester 677447c-dirty (677447c)

Related Issue:
harvester/harvester#6285

Test plan:
Run cat /etc/harvester-release and make sure the os line includes the harvester-installer commit hash in parentheses.


This is an automatic backport of pull request #791 done by [Mergify](https://mergify.com).

For release builds, this should give us something like the following,
which includes the commit hash from harvester-installer:

  installer: ff64884
  os: Harvester v1.3

For local dev builds, it's a bit redundant, but I don't think
there's any harm in this:

  installer: 677447c
  os: Harvester 677447c-dirty

Related issue: harvester/harvester#6285

Signed-off-by: Tim Serong <[email protected]>
(cherry picked from commit 7d89bd6)
@tserong tserong merged commit 3399cdc into v1.4 Aug 19, 2024
7 checks passed
@mergify mergify bot deleted the mergify/bp/v1.4/pr-791 branch August 19, 2024 04:59
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