Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging #8

Merged
merged 4 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
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
Loading