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 Docker build versioning #20077

Merged
merged 5 commits into from
Dec 7, 2021
Merged

Fix Docker build versioning #20077

merged 5 commits into from
Dec 7, 2021

Conversation

novocaine
Copy link
Contributor

@novocaine novocaine commented Dec 7, 2021

Fixes #20074

  • Refactor generation of a git-hash-based version into get-version-from-git
  • Refactor normalization of versions (stripping leading v) into normalize-version.sh
  • Call get-version-from-git from ci_package.sh, call normalize-version from package.sh
  • Refactor docker-write-version.sh into docker-package.sh, which both writes the
    version file and invokes yarn build passing VERSION
  • Normalize the version received from the server

This PR currently has no changelog labels, so will not be included in changelogs.

A reviewer can add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is, or add Type: [enhancement/defect/task] to the description and I'll add them for you.

* Refactor generation of a git-hash-based version into get-version-from-git
* Refactor normalization of versions (stripping leading v) into normalize-version.sh
* Call get-version-from-git from ci_package.sh, call normalize-version from package.sh
* Refactor docker-write-version.sh into docker-package.sh, which both writes the
  version file and invokes yarn build passing VERSION
@novocaine novocaine requested a review from a team as a code owner December 7, 2021 03:46
@turt2live
Copy link
Member

we should also probably send this against the 1.9.6 release branch and trigger a 1.9.6.1 or whatever on docker hub to fix the update loop

@novocaine novocaine changed the title Centralise build version scripts and fix Docker versioning Fix Docker build versioning Dec 7, 2021
@novocaine novocaine merged commit b0abbfa into develop Dec 7, 2021
@novocaine novocaine deleted the fix-docker-version branch December 7, 2021 04:11
novocaine added a commit that referenced this pull request Dec 7, 2021
* Centralise version scripts and fix Docker version
* Refactor generation of a git-hash-based version into get-version-from-git
* Refactor normalization of versions (stripping leading v) into normalize-version.sh
* Call get-version-from-git from ci_package.sh, call normalize-version from package.sh
* Refactor docker-write-version.sh into docker-package.sh, which both writes the
  version file and invokes yarn build passing VERSION
* Normalize the version received from the server
@novocaine
Copy link
Contributor Author

we should also probably send this against the 1.9.6 release branch and trigger a 1.9.6.1 or whatever on docker hub to fix the update loop

#20078

novocaine added a commit that referenced this pull request Dec 7, 2021
* Centralise version scripts and fix Docker version
* Refactor generation of a git-hash-based version into get-version-from-git
* Refactor normalization of versions (stripping leading v) into normalize-version.sh
* Call get-version-from-git from ci_package.sh, call normalize-version from package.sh
* Refactor docker-write-version.sh into docker-package.sh, which both writes the
  version file and invokes yarn build passing VERSION
* Normalize the version received from the server
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.

Docker image not picking up the correct runtime VERSION variable
2 participants