diff --git a/Makefile b/Makefile index 99c534f02c08c..8397d50a19125 100644 --- a/Makefile +++ b/Makefile @@ -1392,7 +1392,7 @@ IS_PROD_SEMVER = $(if $(findstring -,$(VERSION)),$(call find-any,$(PROD_VERSIONS # specified explicitly with `make tag-build CLOUD_ONLY=`. .PHONY: tag-build tag-build: CLOUD_ONLY = $(if $(IS_CLOUD_SEMVER),true,false) -tag-build: ENVIRONMENT = $(if $(IS_PROD_SEMVER),build-prod,build-stage) +tag-build: ENVIRONMENT = $(if $(IS_PROD_SEMVER),prod/build,stage/build) tag-build: @which gh >/dev/null 2>&1 || { echo 'gh command needed. https://github.com/cli/cli'; exit 1; } gh workflow run tag-build.yaml \ @@ -1412,7 +1412,7 @@ tag-build: # specified explicitly with `make tag-publish CLOUD_ONLY=`. .PHONY: tag-publish tag-publish: CLOUD_ONLY = $(if $(IS_CLOUD_SEMVER),true,false) -tag-publish: ENVIRONMENT = $(if $(IS_PROD_SEMVER),publish-prod,publish-stage) +tag-publish: ENVIRONMENT = $(if $(IS_PROD_SEMVER),prod/publish,stage/publish) tag-publish: @which gh >/dev/null 2>&1 || { echo 'gh command needed. https://github.com/cli/cli'; exit 1; } gh workflow run tag-publish.yaml \ diff --git a/darwin-signing.mk b/darwin-signing.mk index 2af0377c56820..d4f6823114e97 100644 --- a/darwin-signing.mk +++ b/darwin-signing.mk @@ -1,7 +1,7 @@ # MacOS/Darwin variables for packaging, signing and notarizing. # -# These are parameterized per environment, with `build-prod` for official -# releases and `build-stage` for development testing. These environment names +# These are parameterized per environment, with `prod/build` for official +# releases and `stage/build` for development testing. These environment names # come from our configuration in GitHub Actions. These parameters may be # moved to the GitHub Actions environments, however we'll always keep the # development testing variables defined here so as to be able to run the @@ -14,12 +14,12 @@ # Default environment name if not specified. This is currently for running # locally instead of from GitHub Actions, where ENVIRONMENT_NAME would not be # set. -ENVIRONMENT_NAME ?= build-stage +ENVIRONMENT_NAME ?= stage/build # CLEAN_ENV_NAME replaces hyphens with underscores as hyphens are not valid in # environment variable names (make is ok with them, but they get exported, and # we want that to be clean). -CLEAN_ENV_NAME = $(subst -,_,$(ENVIRONMENT_NAME)) +CLEAN_ENV_NAME = $(subst /,_,$(ENVIRONMENT_NAME)) # Variables defined below are defined with the clean environment name suffix to # specify the appropriate value for that environment. The unsuffixed names @@ -51,44 +51,26 @@ TCTL_BUNDLEID = $(TCTL_BUNDLEID_$(CLEAN_ENV_NAME)) TSH_SKELETON = $(TSH_SKELETON_$(CLEAN_ENV_NAME)) TCTL_SKELETON = $(TCTL_SKELETON_$(CLEAN_ENV_NAME)) -# --- build-prod environment (promote is the old name and will be removed) +# --- prod/build environment (promote is the old name and will be removed) # Key names can be found on https://goteleport.com/security -TEAMID_build_prod = QH8AA5B8UP -DEVELOPER_KEY_NAME_build_prod = Developer ID Application: Gravitational Inc. -INSTALLER_KEY_NAME_build_prod = Developer ID Installer: Gravitational Inc. -TELEPORT_BUNDLEID_build_prod = com.gravitational.teleport -TSH_BUNDLEID_build_prod = $(TEAMID).com.gravitational.teleport.tsh -TSH_SKELETON_build_prod = tsh -TCTL_BUNDLEID_build_prod = $(TEAMID).com.gravitational.teleport.tctl -TCTL_SKELETON_build_prod = tctl - -TEAMID_promote = $(TEAMID_build_prod) -DEVELOPER_KEY_NAME_promote = $(DEVELOPER_KEY_NAME_build_prod) -INSTALLER_KEY_NAME_promote = $(INSTALLER_KEY_NAME_build_prod) -TELEPORT_BUNDLEID_promote = $(TELEPORT_BUNDLEID_build_prod) -TSH_BUNDLEID_promote = $(TSH_BUNDLEID_build_prod) -TSH_SKELETON_promote = $(TSH_SKELETON_build_prod) -TCTL_BUNDLEID_promote = $(TCTL_BUNDLEID_build_prod) -TCTL_SKELETON_promote = $(TCTL_SKELETON_build_prod) - -# --- build-stage environment (build is the old name and will be removed) -TEAMID_build_stage = K497G57PDJ -DEVELOPER_KEY_NAME_build_stage = Developer ID Application: Ada Lin -INSTALLER_KEY_NAME_build_stage = Developer ID Installer: Ada Lin -TELEPORT_BUNDLEID_build_stage = com.goteleport.dev -TSH_BUNDLEID_build_stage = $(TEAMID).com.goteleport.tshdev -TSH_SKELETON_build_stage = tshdev -TCTL_BUNDLEID_build_stage = $(TEAMID).com.goteleport.tctldev -TCTL_SKELETON_build_stage = tctldev - -TEAMID_build = $(TEAMID_build_stage) -DEVELOPER_KEY_NAME_build = $(DEVELOPER_KEY_NAME_build_stage) -INSTALLER_KEY_NAME_build = $(INSTALLER_KEY_NAME_build_stage) -TELEPORT_BUNDLEID_build = $(TELEPORT_BUNDLEID_build_stage) -TSH_BUNDLEID_build = $(TSH_BUNDLEID_build_stage) -TSH_SKELETON_build = $(TSH_SKELETON_build_stage) -TCTL_BUNDLEID_build = $(TCTL_BUNDLEID_build_stage) -TCTL_SKELETON_build = $(TCTL_SKELETON_build_stage) +TEAMID_prod_build = QH8AA5B8UP +DEVELOPER_KEY_NAME_prod_build = Developer ID Application: Gravitational Inc. +INSTALLER_KEY_NAME_prod_build = Developer ID Installer: Gravitational Inc. +TELEPORT_BUNDLEID_prod_build = com.gravitational.teleport +TSH_BUNDLEID_prod_build = $(TEAMID).com.gravitational.teleport.tsh +TSH_SKELETON_prod_build = tsh +TCTL_BUNDLEID_prod_build = $(TEAMID).com.gravitational.teleport.tctl +TCTL_SKELETON_prod_build = tctl + +# --- stage/build environment (build is the old name and will be removed) +TEAMID_stage_build = K497G57PDJ +DEVELOPER_KEY_NAME_stage_build = Developer ID Application: Ada Lin +INSTALLER_KEY_NAME_stage_build = Developer ID Installer: Ada Lin +TELEPORT_BUNDLEID_stage_build = com.goteleport.dev +TSH_BUNDLEID_stage_build = $(TEAMID).com.goteleport.tshdev +TSH_SKELETON_stage_build = tshdev +TCTL_BUNDLEID_stage_build = $(TEAMID).com.goteleport.tctldev +TCTL_SKELETON_stage_build = tctldev # SHOULD_NOTARIZE evalutes to "true" if we should sign and notarize binaries, # and the empty string if not. We only notarize if APPLE_USERNAME and diff --git a/e b/e index 5341805e4c4fa..09b6ec7058e37 160000 --- a/e +++ b/e @@ -1 +1 @@ -Subproject commit 5341805e4c4faa5de775e3bb5dbbe7603b4eb92e +Subproject commit 09b6ec7058e37bfecec4eadf6b01f97229c1c995