Skip to content

Commit

Permalink
Update ✨ makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lumbrjx committed Aug 29, 2024
1 parent 461ddc4 commit 374d777
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,37 @@
VALIDATE_PATH = $(GOPATH)/pkg/mod/github.com/envoyproxy/[email protected]
SOURCE_DIR=common/proto/$$PROTO_PATH/$$PROTO_PATH
TARGET_DIR=common/proto/$$PROTO_PATH
DEV_BRANCH = dev
STAGING_BRANCH = staging
RELEASE_BRANCH = release
MAIN_BRANCH = main

.PHONY: all generate-proto build-daemon

all: create-cluster deploy-controller deploy-daemonset setup-prometheus port-forward-prometheus

dev-to-staging:
@git checkout $(STAGING_BRANCH)
@git merge $(DEV_BRANCH)
@git push origin $(STAGING_BRANCH)
@echo "Merged $(DEV_BRANCH) to $(STAGING_BRANCH) and pushed to origin."

staging-to-release: dev-to-staging release
@git checkout $(RELEASE_BRANCH)
@git merge $(STAGING_BRANCH)
@git push origin $(RELEASE_BRANCH)
@echo "Merged $(STAGING_BRANCH) to $(RELEASE_BRANCH) and pushed to origin."

release-to-main: staging-to-release
@git checkout $(MAIN_BRANCH)
@git merge $(RELEASE_BRANCH)
@git push origin $(MAIN_BRANCH)
@echo "Merged $(RELEASE_BRANCH) to $(MAIN_BRANCH) and pushed to origin."

# Full pipeline (runs all steps)
pipeline: release-to-main
@echo "Pipeline completed successfully."

build-daemon:
@if [ -z "$$TAG" ]; then \
echo "Usage: make build-daemon TAG=<tag>"; \
Expand Down

0 comments on commit 374d777

Please sign in to comment.