Commit graph

17 commits

Author SHA1 Message Date
Jakub Nyckowski 32673f7eca
Build version checker - multiple fixes (#30580)
* Build version checker - multiple fixes

In several files, the command 'go run' has been updated to 'CC=gcc go run'. This ensures that gcc is used when compiling the Go code, to provide better cross platform support. Prior to this change, the Go compiler was making platform specific builds.

This was a significant issue with the 'kube operator' goal where the built binary could not operate across different platforms.

The change has been applied consistently throughout the codebase in 'Makefile', 'container_image_triggers.go', 'version.mk', 'os_repos.go', and 'build.assets/Makefile' files. Compliance with this new standard should be maintained going forward for any new compilation requests.

* Update .drone.yml

* Replace CC=gcc environment variable with CGO_ENABLED=0

The CC=gcc environment variable was replaced with CGO_ENABLED=0 as CGO is not needed.

* Update .drone.yml
2023-08-16 23:26:41 +00:00
Trent Clarke a39c84b5b4
Semver version validation (#30480)
Tagging a release with an invalid semver string (especially an almost-but-
not-quite-valid semver string) can cause an incorrect environment to be
selected when publishing packages during promotion, with the attendant
risk of polluting production artefact repositories.

This change attempts to force the use of correctly-formed semver strings by

 - validating the semver string on application (i.e. as part of make version)
 - validating that the GITTAG value used to trigger a build is valid semver, and
 - as a harm reduction measure, changing the semver check tool to interpret
   an invalid semver string as if it had pre-release or build metadata.
   This is a backstop, just in case a malformed tag sneaks through outside of
   our automation.

Changelog: none
2023-08-16 01:20:21 +00:00
Cam Hutchison 49ab2a7bfd
Update version in tsh.app Info.plist (#25616)
Update the version in tsh.app (tsh and tshdev) `Info.plist` files when
`make version` (`make update-version`) is run. If the version number has
any semver prerelease tags, then the tsh version number will be set to
"1.0", as those tags are not valid in the CFBundleShortVersionString or
CFBundleVersion fields. For a release without a semver tag, the value
will be set.

This will update the CFBundleVersion and CFBundleShortVersionString
fields of the `Info.plist` file.

This commit contains re-written plist files as they get reindented by
the tool, the CFBundleVersion becomes "1.0" (was "1") and one empty
element is shortened to the empty-element form.

Link: https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion
Link: https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring
2023-05-15 22:42:54 +00:00
Hugo Shaka 0d6f7a422a
Fix flaky test detetion for updater (#22690)
* Fix flaky test detetion for updater

* fixup! Fix flaky test detetion for updater
2023-03-07 04:49:01 +00:00
Edoardo Spadolini 728946294e
Fix version.go/gitref.go code generation mark (#19989)
This makes version.go compliant with https://golang.org/s/generatedcode
2023-01-09 14:55:00 +00:00
Marco Dinis 5effbd8359 Add Teleport operator
This commit adds the Teleport operator. The operator reconciles
TeleportUsers and TeleportRoles Kubernetes resources with Users and
Roles Teleport resources.
2022-07-25 15:27:10 -04:00
Russell Jones 429a106ba2 Update version.mk to set Helm chart versions. 2021-09-23 21:11:03 +02:00
Forrest Marshall 51caf1d9cf Improved build determinism. 2021-07-28 17:16:14 -07:00
Brian Joerger a3aab985cd
API version generated file (#7157) 2021-06-18 13:52:55 -05:00
Gus Luxton 8767fb81f5
helm: Fixes for Linux/Mac interoperability (#6891) 2021-05-17 12:01:16 -07:00
Gus Luxton 925801440a
helm: Adds 'aws', 'gcp', 'standalone' and ‘custom’ modes to teleport-cluster chart (#6344) 2021-05-17 11:35:11 -03:00
Ev Kontsevoy 02464f6547 Added proper comments to teleport package
So we're playing nicer with godoc
2017-01-03 22:54:53 -08:00
Ev Kontsevoy 3c9f138f59 Another Makefile compatibility fix. 2016-12-31 00:13:41 -08:00
Ev Kontsevoy 91412716d7 Replaced echo with printf in Makefile
Fixes #467
2016-06-29 19:12:19 -07:00
Ev Kontsevoy d3671fd922 Release of version 1.0.0 of Teleport
Woo!
2016-06-15 10:50:45 -07:00
Ev Kontsevoy 828e6a77aa Simpler version implementation 2016-06-14 18:03:06 -07:00
Ev Kontsevoy 4dbb06c492 Intermediate commit 2016-06-14 16:00:17 -07:00