Merge branch 'master' into fix/swagger_url_param_typo
This commit is contained in:
commit
b04bf3cc87
|
|
@ -216,7 +216,7 @@ pipeline:
|
||||||
image: lucap/drone-netlify:latest
|
image: lucap/drone-netlify:latest
|
||||||
pull: true
|
pull: true
|
||||||
secrets: [ netlify_token ]
|
secrets: [ netlify_token ]
|
||||||
site_id: 05515f14-3702-4a84-9ff3-88ba90fe08dd
|
site_id: d2260bae-7861-4c02-8646-8f6440b12672
|
||||||
path: docs/public/
|
path: docs/public/
|
||||||
when:
|
when:
|
||||||
event: [ push ]
|
event: [ push ]
|
||||||
|
|
|
||||||
24
Makefile
24
Makefile
|
|
@ -21,7 +21,19 @@ GOFMT ?= gofmt -s
|
||||||
GOFLAGS := -i -v
|
GOFLAGS := -i -v
|
||||||
EXTRA_GOFLAGS ?=
|
EXTRA_GOFLAGS ?=
|
||||||
|
|
||||||
LDFLAGS := -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')" -X "main.Tags=$(TAGS)"
|
ifneq ($(DRONE_TAG),)
|
||||||
|
VERSION ?= $(subst v,,$(DRONE_TAG))
|
||||||
|
GITEA_VERSION := $(VERSION)
|
||||||
|
else
|
||||||
|
ifneq ($(DRONE_BRANCH),)
|
||||||
|
VERSION ?= $(subst release/v,,$(DRONE_BRANCH))
|
||||||
|
else
|
||||||
|
VERSION ?= master
|
||||||
|
endif
|
||||||
|
GITEA_VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
|
||||||
|
endif
|
||||||
|
|
||||||
|
LDFLAGS := -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"
|
||||||
|
|
||||||
PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations,$(shell $(GO) list ./... | grep -v /vendor/))
|
PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations,$(shell $(GO) list ./... | grep -v /vendor/))
|
||||||
SOURCES ?= $(shell find . -name "*.go" -type f)
|
SOURCES ?= $(shell find . -name "*.go" -type f)
|
||||||
|
|
@ -45,16 +57,6 @@ else
|
||||||
EXECUTABLE := gitea
|
EXECUTABLE := gitea
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(DRONE_TAG),)
|
|
||||||
VERSION ?= $(subst v,,$(DRONE_TAG))
|
|
||||||
else
|
|
||||||
ifneq ($(DRONE_BRANCH),)
|
|
||||||
VERSION ?= $(subst release/v,,$(DRONE_BRANCH))
|
|
||||||
else
|
|
||||||
VERSION ?= master
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# $(call strip-suffix,filename)
|
# $(call strip-suffix,filename)
|
||||||
strip-suffix = $(firstword $(subst ., ,$(1)))
|
strip-suffix = $(firstword $(subst ., ,$(1)))
|
||||||
|
|
||||||
|
|
|
||||||
2
docs/static/_headers
vendored
2
docs/static/_headers
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Content-Security-Policy: default-src 'self'
|
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' https://fonts.googleapis.com https://cdnjs.cloudflare.com; font-src 'self' data: https://cdnjs.cloudflare.com https://fonts.gstatic.com
|
||||||
X-Frame-Options: DENY
|
X-Frame-Options: DENY
|
||||||
X-Xss-Protection: 1; mode=block
|
X-Xss-Protection: 1; mode=block
|
||||||
X-Content-Type-Options: nosniff
|
X-Content-Type-Options: nosniff
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user