Skip to content

Commit b21d429

Browse files
authored
chore: revert release-src cmd in makefile (#2433)
1 parent 5588c00 commit b21d429

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
3435
go.work

Makefile

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919

2020
VERSION ?= 2.0.0
2121

22-
IMAGE_TAG ?= dev
22+
RELEASE_SRC = apache-apisix-ingress-controller-${VERSION}-src
2323

24+
IMAGE_TAG ?= dev
2425
IMG ?= apache/apisix-ingress-controller:$(IMAGE_TAG)
2526
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
2627
ENVTEST_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
422423
update-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

0 commit comments

Comments
 (0)