mirror of https://gitea.com/gitea/blog.git
fix: run hugo directly instead of plugin image (#220)
ref: https://github.com/go-gitea/gitea/pull/22206 Co-authored-by: jolheiser <john.olheiser@gmail.com> Reviewed-on: https://gitea.com/gitea/blog/pulls/220 Reviewed-by: techknowlogick <techknowlogick@gitea.io> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: John Olheiser <john+gitea@jolheiser.com> Co-committed-by: John Olheiser <john+gitea@jolheiser.com>
This commit is contained in:
parent
b3913e34e2
commit
7f17e0178a
|
@ -13,10 +13,8 @@ workspace:
|
|||
steps:
|
||||
- name: build
|
||||
pull: always
|
||||
image: plugins/hugo:latest
|
||||
image: golang:1.19
|
||||
commands:
|
||||
# https://github.com/drone-plugins/drone-hugo/issues/36
|
||||
- apk --no-cache upgrade libcurl && apk add --no-cache make bash curl
|
||||
- make clean
|
||||
- make build
|
||||
|
||||
|
|
6
Makefile
6
Makefile
|
@ -2,6 +2,8 @@ THEME := themes/gitea
|
|||
PUBLIC := public
|
||||
ARCHIVE := https://dl.gitea.io/theme/master.tar.gz
|
||||
|
||||
HUGO_PACKAGE := github.com/gohugoio/hugo@v0.81.0
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
|
@ -11,11 +13,11 @@ clean:
|
|||
|
||||
.PHONY: server
|
||||
server: $(THEME)
|
||||
hugo server
|
||||
go run $(HUGO_PACKAGE) server
|
||||
|
||||
.PHONY: build
|
||||
build: $(THEME)
|
||||
hugo --cleanDestinationDir
|
||||
go run $(HUGO_PACKAGE) --cleanDestinationDir
|
||||
|
||||
.PHONY: update
|
||||
update: $(THEME)
|
||||
|
|
Loading…
Reference in New Issue