Skip to content

Commit

Permalink
IOSAS | IaC | Add git tag after api/web build
Browse files Browse the repository at this point in the history
  • Loading branch information
fwpushan committed Oct 12, 2023
1 parent 0235a1f commit 6182aad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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



Expand Down

0 comments on commit 6182aad

Please sign in to comment.