Skip to content

Commit

Permalink
added makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
vikramdevtron committed Oct 24, 2024
1 parent 8b15242 commit cf9de39
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 1 deletion.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

TARGET_BRANCH?=main

all: build

dep-update-oss:
cd git-sensor && TARGET_BRANCH=$(TARGET_BRANCH) $(MAKE) dep-update-oss
cd chart-sync && TARGET_BRANCH=$(TARGET_BRANCH) $(MAKE) dep-update-oss
cd ci-runner && TARGET_BRANCH=$(TARGET_BRANCH) $(MAKE) dep-update-oss
cd common-lib && TARGET_BRANCH=$(TARGET_BRANCH) $(MAKE) dep-update-oss
cd kubelink && TARGET_BRANCH=$(TARGET_BRANCH) $(MAKE) dep-update-oss
cd kubewatch && TARGET_BRANCH=$(TARGET_BRANCH) $(MAKE) dep-update-oss
cd lens && TARGET_BRANCH=$(TARGET_BRANCH) $(MAKE) dep-update-oss

build:
cd chart-sync && $(MAKE)
cd ci-runner && $(MAKE)
# cd devtctl && $(MAKE)
cd git-sensor && $(MAKE)
cd kubelink && $(MAKE)
cd kubewatch && $(MAKE)
cd lens && $(MAKE)
# cd common-lib && $(MAKE)
6 changes: 6 additions & 0 deletions chart-sync/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ docker-build-image: build
docker-build-push: docker-build-image
docker tag chart-sync:${TAG} ${REGISTRY}/chart-sync:${TAG}
docker push ${REGISTRY}/chart-sync:${TAG}

dep-update-oss:
go mod edit -replace=github.com/devtron-labs/common-lib=github.com/devtron-labs/devtron-services/common-lib@$(TARGET_BRANCH) \
-replace=github.com/devtron-labs/chart-sync=github.com/devtron-labs/devtron-services/chart-sync@$(TARGET_BRANCH)
go mod tidy
go mod vendor
5 changes: 5 additions & 0 deletions git-sensor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,10 @@ run: build
# docker tag orchestrator:${TAG} ${REGISTRY}/orchestrator:${TAG}
# docker push ${REGISTRY}/orchestrator:${TAG}

dep-update-oss:
go mod edit -replace=github.com/devtron-labs/common-lib=github.com/devtron-labs/devtron-services/common-lib@$(TARGET_BRANCH) \
-replace=github.com/devtron-labs/git-sensor=github.com/devtron-labs/devtron-services/git-sensor@$(TARGET_BRANCH)
go mod tidy
go mod vendor


6 changes: 6 additions & 0 deletions kubelink/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ clean:
run: build
./kubelink

dep-update-oss:
go mod edit -replace=github.com/devtron-labs/common-lib=github.com/devtron-labs/devtron-services/common-lib@$(TARGET_BRANCH) \
-replace=github.com/devtron-labs/kubelink=github.com/devtron-labs/devtron-services/kubelink@$(TARGET_BRANCH)
go mod tidy
go mod vendor

7 changes: 7 additions & 0 deletions kubewatch/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ clean-images: stop

clean:
"$(GOCMD)" clean -i


TARGET_BRANCH?=main
dep-update-oss:
go mod edit -replace=github.com/devtron-labs/common-lib=github.com/devtron-labs/devtron-services/common-lib@$(TARGET_BRANCH)
go mod tidy
go mod vendor
9 changes: 8 additions & 1 deletion lens/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ run: build

.PHONY: build
docker-build-image: build
docker build -t lens:$(TAG) .
docker build -t lens:$(TAG) .


TARGET_BRANCH?=main
dep-update-oss:
go mod edit -replace=github.com/devtron-labs/common-lib=github.com/devtron-labs/devtron-services/common-lib@$(TARGET_BRANCH)
go mod tidy
go mod vendor

0 comments on commit cf9de39

Please # to comment.