You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: makefiles/release.mk
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -160,3 +160,11 @@ release_build_local: ## Build binary for current platform only
160
160
@mkdir -p $(RELEASE_DIR)
161
161
@CGO_ENABLED=0 go build -ldflags="$(LDFLAGS)" -o $(RELEASE_DIR)/path-local ./cmd
162
162
@echo "✓ Built $(RELEASE_DIR)/path-local"
163
+
164
+
.PHONY: build_ghcr_image_current_branch
165
+
build_ghcr_image_current_branch: ## Trigger the main-build workflow using the current branch to push an image to ghcr.io/buildwithgrove/path
166
+
@echo "Triggering main-build workflow for current branch..."
167
+
@BRANCH=$$(git rev-parse --abbrev-ref HEAD)&&\
168
+
gh workflow run main-build.yml --ref $$BRANCH
169
+
@echo "Workflow triggered for branch: $$(git rev-parse --abbrev-ref HEAD)"
170
+
@echo "Check the workflow status at: https://github.com/$(shell git config --get remote.origin.url | sed 's/.*github.com[:/]\([^/]*\/[^.]*\).*/\1/')/actions/workflows/main-build.yml"
0 commit comments