Files
Gavin Frazar bddd9b4df1 Teleport ECS Terraform module (#68481)
Adds a Terraform module that deploys a Teleport instance to
AWS ECS.
2026-07-15 04:49:24 +00:00

41 lines
1.7 KiB
Makefile

# Include common makefile shared between OSS and Ent.
include common.mk
GITREF=$(shell git describe --long --tags)
# $(GITREF_GO) will be written to gitref.go
GITREF_GO="// Code generated by \"make version\". DO NOT EDIT.\n\n\
package teleport\n\n\
func init() { Gitref = \"$(GITREF)\" }\n"
#
# setver updates api/version.go and gitref.go with VERSION and GITREF vars
#
.PHONY: setver
setver: validate-semver helm-version tsh-version
GOWORK=off CGO_ENABLED=0 go -C build.assets/tooling run ./cmd/apiversion "$(VERSION)" > api/version.go
@printf $(GITREF_GO) | gofmt > gitref.go
$(MAKE) -C integrations/terraform-modules update-version VERSION=$(VERSION)
# helm-version automatically updates the versions of Helm charts to match the version set in the Makefile,
# so that chart versions are also kept in sync when the Teleport version is updated for a release.
# If the version contains '-dev' (as it does on the master branch, or for development builds) then we get the latest
# published major version number by parsing a sorted list of git tags instead, to make deploying the chart from master
# work as expected.
.PHONY:helm-version
helm-version:
$(HELMJANITOR) update-version $(VERSION)
TSH_APP_PLISTS := $(wildcard build.assets/macos/*/tsh.app/Contents/Info.plist)
PLIST_FILES := $(abspath $(TSH_APP_PLISTS))
# tsh-version sets CFBundleVersion and CFBundleShortVersionString in the tsh{,dev} Info.plist
.PHONY:tsh-version
tsh-version:
GOWORK=off CGO_ENABLED=0 go -C build.assets/tooling run ./cmd/update-plist-version $(VERSION) $(PLIST_FILES)
.PHONY:validate-semver
validate-semver:
# Turning off GOWORK to prevent missing package errors.
GOWORK=off CGO_ENABLED=0 go -C build.assets/tooling run ./cmd/check -check valid -tag v$(VERSION)