Skip to content

Commit 57a8b53

Browse files
authored
fix(build): update Makefile.release (#4599)
Use the new RELEASE_VERSION variable to set the version number in the release build.
1 parent c9fce79 commit 57a8b53

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

builder/Makefile.release

+6-6
Original file line numberDiff line numberDiff line change
@@ -178,23 +178,23 @@ ifeq ("$(RELEASE_GITHUB)", "1")
178178
# must be deleted so the next triggered action can recreate it updated.
179179
# note: docker TAGS created by release workflows (not here).
180180
@( \
181-
$(CMD_GITHUB) release view $(SNAPSHOT_VERSION) > /dev/null 2>&1 && \
182-
echo "Release $(SNAPSHOT_VERSION) already exists" \
181+
$(CMD_GITHUB) release view $(RELEASE_VERSION) > /dev/null 2>&1 && \
182+
echo "Release $(RELEASE_VERSION) already exists" \
183183
) || \
184184
( \
185-
echo "Creating release $(SNAPSHOT_VERSION)" && \
185+
echo "Creating release $(RELEASE_VERSION)" && \
186186
echo '## Docker Image' > $(RELEASE_NOTES) && \
187187
echo '- `docker pull docker.io/$(DOCKER_REPO):$(DOCKER_TAG)`' >> $(RELEASE_NOTES) && \
188188
echo ' ' >> $(RELEASE_NOTES) && \
189189
echo '## Docker Images (per architecture) ' >> $(RELEASE_NOTES) && \
190190
echo '- `docker pull docker.io/$(DOCKER_REPO):x86_64-$(DOCKER_TAG)`' >> $(RELEASE_NOTES) && \
191191
echo '- `docker pull docker.io/$(DOCKER_REPO):aarch64-$(DOCKER_TAG)`' >> $(RELEASE_NOTES) && \
192-
$(CMD_GITHUB) release create $(SNAPSHOT_VERSION) --title $(SNAPSHOT_VERSION) --notes-file $(RELEASE_NOTES) \
192+
$(CMD_GITHUB) release create $(RELEASE_VERSION) --title $(RELEASE_VERSION) --notes-file $(RELEASE_NOTES) \
193193
)
194194

195195
# upload artifacts to release (clobbering existing with same name)
196-
@echo "Uploading artifacts to release $(SNAPSHOT_VERSION)" && \
197-
$(CMD_GITHUB) release upload --clobber $(SNAPSHOT_VERSION) $(OUT_ARCHIVE) $(OUT_CHECKSUMS)
196+
@echo "Uploading artifacts to release $(RELEASE_VERSION)" && \
197+
$(CMD_GITHUB) release upload --clobber $(RELEASE_VERSION) $(OUT_ARCHIVE) $(OUT_CHECKSUMS)
198198
endif
199199

200200

0 commit comments

Comments
 (0)