From 6182aada781b26958923620abcc1f4edc9401904 Mon Sep 17 00:00:00 2001 From: Pushan Mitra Date: Thu, 12 Oct 2023 12:17:41 -0700 Subject: [PATCH] IOSAS | IaC | Add git tag after api/web build --- tools/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index 6e1895f..5f64479 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -206,6 +206,8 @@ build-api: @oc -n $(BUILD_NAMESPACE) tag $(API):$(BUILD_TAG) $(API):latest @oc -n $(BUILD_NAMESPACE) tag $(API):$(BUILD_TAG) $(API):$(BRANCH_REF) @oc -n $(BUILD_NAMESPACE) tag $(API):$(BUILD_TAG) $(API):$(current_datetime) + @git tag -fa $(ENV_PREFIX)-api-$(current_datetime) -m "$(ENV_PREFIX)-api: Tagging the api build" + @git push origin --tags build-web: test -n "$(BUILD_REF)" @@ -223,7 +225,8 @@ build-web: @oc -n $(BUILD_NAMESPACE) tag $(Web):$(BUILD_TAG) $(Web):latest @oc -n $(BUILD_NAMESPACE) tag $(Web):$(BUILD_TAG) $(Web):$(BRANCH_REF) @oc -n $(BUILD_NAMESPACE) tag $(Web):$(BUILD_TAG) $(Web):$(current_datetime) - + @git tag -fa $(ENV_PREFIX)-web-$(current_datetime) -m "$(ENV_PREFIX)-web: Tagging the web build" + @git push origin --tags