diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2022-06-05 10:42:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-05 10:42:24 +0800 |
commit | dadcaa48369c809c1f22315ddd7db01f33a7ad24 (patch) | |
tree | 00758d7ef019e913d9d6b1ad32b556bfb81c94d9 /Makefile | |
parent | abb7d4ae5d1bb96e89a87de475a0453ce85f6404 (diff) | |
download | gitea-dadcaa48369c809c1f22315ddd7db01f33a7ad24.tar.gz gitea-dadcaa48369c809c1f22315ddd7db01f33a7ad24.zip |
fix(CI/CD): correct CI variable. (#19886)
default value is true for CI variable
see https://docs.drone.io/pipeline/environment/reference/ci/
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -616,27 +616,27 @@ release-windows: | $(DIST_DIRS) ifeq (,$(findstring gogit,$(TAGS))) CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -buildmode exe -dest $(DIST)/binaries -tags 'netgo osusergo gogit $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION)-gogit . endif -ifeq ($(CI),drone) +ifeq ($(CI),true) cp /build/* $(DIST)/binaries endif .PHONY: release-linux 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) . -ifeq ($(CI),drone) +ifeq ($(CI),true) cp /build/* $(DIST)/binaries endif .PHONY: release-darwin release-darwin: | $(DIST_DIRS) CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin-10.12/amd64,darwin-10.12/arm64' -out gitea-$(VERSION) . -ifeq ($(CI),drone) +ifeq ($(CI),true) cp /build/* $(DIST)/binaries endif .PHONY: release-copy release-copy: | $(DIST_DIRS) - cd $(DIST); for file in `find /build -type f -name "*"`; do cp $${file} ./release/; done; + cd $(DIST); for file in `find . -type f -name "*"`; do cp $${file} ./release/; done; .PHONY: release-check release-check: | $(DIST_DIRS) |