Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prebuild CSS/JS before xgo release binaries #9293

Merged
merged 6 commits into from
Dec 8, 2019
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,19 @@ steps:
commands:
- git fetch --tags --force

- name: build
pull: always
image: golang:1.13
commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
- make css
- make js
- make generate
lafriks marked this conversation as resolved.
Show resolved Hide resolved
environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org
TAGS: bindata sqlite sqlite_unlock_notify

- name: static
pull: always
image: techknowlogick/xgo:latest
Expand Down Expand Up @@ -489,6 +502,19 @@ steps:
commands:
- git fetch --tags --force

- name: build
pull: always
image: golang:1.13
commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
- make css
- make js
- make generate
environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org
TAGS: bindata sqlite sqlite_unlock_notify

- name: static
pull: always
image: techknowlogick/xgo:latest
Expand Down Expand Up @@ -647,8 +673,6 @@ steps:
exclude:
- pull_request



---
kind: pipeline
name: docker-linux-arm64
Expand Down Expand Up @@ -754,6 +778,9 @@ workspace:
base: /go
path: src/code.gitea.io/gitea

clone:
disable: true

when:
status:
- success
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ $(EXECUTABLE): $(GO_SOURCES)
GO111MODULE=on $(GO) build -mod=vendor $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@

.PHONY: release
release: js css generate release-dirs release-windows release-linux release-darwin release-copy release-compress release-check
release: release-dirs release-windows release-linux release-darwin release-copy release-compress release-check

.PHONY: release-dirs
release-dirs:
Expand Down