File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ Dockerfile.cross
2929
3030# Output of the go coverage tool, specifically when used with LiteIDE
3131* .out
32+ release
3233
3334# Go workspace file
3435go.work
Original file line number Diff line number Diff line change 1919
2020VERSION ?= 2.0.0
2121
22- IMAGE_TAG ?= dev
22+ RELEASE_SRC = apache-apisix-ingress-controller-${VERSION}-src
2323
24+ IMAGE_TAG ?= dev
2425IMG ?= apache/apisix-ingress-controller:$(IMAGE_TAG )
2526# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
2627ENVTEST_K8S_VERSION = 1.30.0
@@ -420,3 +421,27 @@ verify-all: verify-license verify-mdlint verify-yamllint
420421# ## update-all: Update all update- rules.
421422.PHONY : update-all
422423update-all : update-license update-mdlint update-gofmt
424+
425+ # ## release-src: Release source
426+ release-src :
427+ tar -zcvf $(RELEASE_SRC ) .tgz \
428+ --exclude .github \
429+ --exclude .git \
430+ --exclude .idea \
431+ --exclude .gitignore \
432+ --exclude .DS_Store \
433+ --exclude docs \
434+ --exclude examples \
435+ --exclude samples \
436+ --exclude test \
437+ --exclude release \
438+ --exclude $(RELEASE_SRC ) .tgz \
439+ .
440+
441+ gpg --batch --yes --armor --detach-sig $(RELEASE_SRC).tgz
442+ shasum -a 512 $(RELEASE_SRC).tgz > $(RELEASE_SRC).tgz.sha512
443+
444+ mkdir -p release
445+ mv $(RELEASE_SRC).tgz release/$(RELEASE_SRC).tgz
446+ mv $(RELEASE_SRC).tgz.asc release/$(RELEASE_SRC).tgz.asc
447+ mv $(RELEASE_SRC).tgz.sha512 release/$(RELEASE_SRC).tgz.sha512
You can’t perform that action at this time.
0 commit comments