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

[release tool] [cherry pick] refactoring changes #9636

Merged
merged 10 commits into from
Jan 9, 2025
2 changes: 1 addition & 1 deletion .semaphore/release/hashrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ blocks:
jobs:
- name: Build and publish hashrelease
commands:
- if [[ ${SEMAPHORE_WORKFLOW_TRIGGERED_BY_SCHEDULE} == "true" ]]; then export BUILD_CONTAINER_IMAGES=true; export SKIP_PUBLISH_IMAGES=false; fi
- if [[ ${SEMAPHORE_WORKFLOW_TRIGGERED_BY_SCHEDULE} == "true" ]]; then export BUILD_CONTAINER_IMAGES=true; export PUBLISH_IMAGES=true; fi
- make hashrelease
prologue:
commands:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ e2e-test:
###############################################################################
# Build the release tool.
release/bin/release: $(shell find ./release -type f -name '*.go')
$(call build_binary, ./release/build, $@)
$(MAKE) -C release

# Install ghr for publishing to github.
bin/ghr:
Expand Down
10 changes: 7 additions & 3 deletions release/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ clean:

bin/release: $(shell find . -name "*.go")
@mkdir -p bin && \
$(call build_binary, ./build, bin/release)
$(call build_binary, ./cmd, bin/release)

###############################################################################
# CI/CD
Expand All @@ -30,9 +30,13 @@ ci: static-checks
###############################################################################
# Hashrelease
###############################################################################
.PHONY: hashrelease
hashrelease: bin/release var-require-all-GITHUB_TOKEN
.PHONY: hashrelease hashrelease-build hashrelease-publish
hashrelease: hashrelease-build hashrelease-publish

hashrelease-build: bin/release var-require-all-GITHUB_TOKEN
@bin/release hashrelease build

hashrelease-publish: bin/release var-require-all-GITHUB_TOKEN
@bin/release hashrelease publish

###############################################################################
Expand Down
Loading
Loading