mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-09-08 16:01:26 +02:00
[CI] implementation: publish forgejo- binaries instead of gitea-
(cherry picked from commit6d910daafb
) (cherry picked from commitd447861cc9
) (cherry picked from commitdc6e9d8799
) (cherry picked from commitef232fa20c
) (cherry picked from commit290c55517a
) (cherry picked from commitdb48af1784
) (cherry picked from commit85f33237a2
) (cherry picked from commit76899ee33e
) (cherry picked from commit148b3ee9cb
) (cherry picked from commit1f6ad8f465
) (cherry picked from commitc330afdba3
) (cherry picked from commitb1f87075a7
) (cherry picked from commit7da40992cc
) (cherry picked from commit7ab19ff5e5
) (cherry picked from commite61e44921b
) (cherry picked from commit83646119fb
) (cherry picked from commit20cf748e61
) (cherry picked from commit0a99919cec
) (cherry picked from commit21215222a6
) (cherry picked from commit0f6c5658d7
) (cherry picked from commit1752e43d3c
) (cherry picked from commit2332080929
) (cherry picked from commit590aabf2a2
) (cherry picked from commit 87d8b7b315c3e25bd3fcf9dc9c1d359bcd107281) (cherry picked from commitff37de38be
) (cherry picked from commitcee32c9e7a
) (cherry picked from commit39faade524
) (cherry picked from commit0e5ca477b6
) (cherry picked from commit70e2730f7b
) (cherry picked from commit2ad4003944
) (cherry picked from commit2429de9e87
) (cherry picked from commitc133915fc1
) (cherry picked from commitc607dcaf9f
) (cherry picked from commit00f006637f
) (cherry picked from commit0de6646475
) (cherry picked from commitb05e83bb1e
) (cherry picked from commitcb71f139f0
) (cherry picked from commit2a8b08ee4f
) (cherry picked from commit3ebab73c4e
) (cherry picked from commit07626c088c
) (cherry picked from commit844e9bc999
) (cherry picked from commitc315e24751
) (cherry picked from commitf5f2b41f3c
) (cherry picked from commit09134424a8
) (cherry picked from commit6fc63d48c4
) (cherry picked from commita0be5c783e
) (cherry picked from commit124bad8230
) (cherry picked from commit57069811d1
) (cherry picked from commit8871d1aac7
)
This commit is contained in:
parent
e90db3f5cc
commit
00c22a25e5
9
Makefile
9
Makefile
|
@ -803,7 +803,10 @@ endif
|
||||||
|
|
||||||
.PHONY: release-linux
|
.PHONY: release-linux
|
||||||
release-linux: | $(DIST_DIRS)
|
release-linux: | $(DIST_DIRS)
|
||||||
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets '$(LINUX_ARCHS)' -out gitea-$(VERSION) .
|
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets '$(LINUX_ARCHS)' -out forgejo-$(VERSION) .
|
||||||
|
ifeq ($(CI),true)
|
||||||
|
cp /build/* $(DIST)/binaries
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: release-darwin
|
.PHONY: release-darwin
|
||||||
release-darwin: | $(DIST_DIRS)
|
release-darwin: | $(DIST_DIRS)
|
||||||
|
@ -831,8 +834,8 @@ release-sources: | $(DIST_DIRS)
|
||||||
# bsdtar needs a ^ to prevent matching subdirectories
|
# bsdtar needs a ^ to prevent matching subdirectories
|
||||||
$(eval EXCL := --exclude=$(shell tar --help | grep -q bsdtar && echo "^")./)
|
$(eval EXCL := --exclude=$(shell tar --help | grep -q bsdtar && echo "^")./)
|
||||||
# use transform to a add a release-folder prefix; in bsdtar the transform parameter equivalent is -s
|
# use transform to a add a release-folder prefix; in bsdtar the transform parameter equivalent is -s
|
||||||
$(eval TRANSFORM := $(shell tar --help | grep -q bsdtar && echo "-s '/^./gitea-src-$(VERSION)/'" || echo "--transform 's|^./|gitea-src-$(VERSION)/|'"))
|
$(eval TRANSFORM := $(shell tar --help | grep -q bsdtar && echo "-s '/^./forgejo-src-$(VERSION)/'" || echo "--transform 's|^./|forgejo-src-$(VERSION)/|'"))
|
||||||
tar $(addprefix $(EXCL),$(TAR_EXCLUDES)) $(TRANSFORM) -czf $(DIST)/release/gitea-src-$(VERSION).tar.gz .
|
tar $(addprefix $(EXCL),$(TAR_EXCLUDES)) $(TRANSFORM) -czf $(DIST)/release/forgejo-src-$(VERSION).tar.gz .
|
||||||
rm -f $(STORED_VERSION_FILE)
|
rm -f $(STORED_VERSION_FILE)
|
||||||
|
|
||||||
.PHONY: release-docs
|
.PHONY: release-docs
|
||||||
|
|
Loading…
Reference in a new issue