Skip to content

Commit

Permalink
build: add installer commit hash to /etc/harvester-release.yaml
Browse files Browse the repository at this point in the history
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 <tserong@suse.com>
(cherry picked from commit 7d89bd6)
  • Loading branch information
tserong committed Aug 19, 2024
1 parent 95b7200 commit 3399cdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/package-harvester-os
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ PRETTY_NAME="Harvester ${VERSION}"
cat > harvester-release.yaml <<EOF
harvester: ${HARVESTER_VERSION}
harvesterChart: ${HARVESTER_CHART_VERSION}
installer: ${COMMIT}
os: ${PRETTY_NAME}
kubernetes: ${RKE2_VERSION}
rancher: ${RANCHER_VERSION}
Expand Down

0 comments on commit 3399cdc

Please sign in to comment.