refactor ci
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
73ea06e4f0
commit
1dcadd5c7d
13
.drone.yml
13
.drone.yml
|
@ -10,11 +10,10 @@ concurrency:
|
||||||
limit: 1
|
limit: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: assets
|
- name: generate
|
||||||
image: thegeeklab/alpine-tools
|
image: thegeeklab/alpine-tools
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p themes/hugo-geekdoc/
|
- make doc
|
||||||
- curl -sSL https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C themes/hugo-geekdoc/ --strip-components=1
|
|
||||||
|
|
||||||
- name: sync
|
- name: sync
|
||||||
image: thegeeklab/git-batch
|
image: thegeeklab/git-batch
|
||||||
|
@ -22,13 +21,9 @@ steps:
|
||||||
- git-batch
|
- git-batch
|
||||||
|
|
||||||
- name: markdownlint
|
- name: markdownlint
|
||||||
image: node:lts-alpine
|
image: thegeeklab/markdownlint-cli
|
||||||
commands:
|
commands:
|
||||||
- npm install -g markdownlint-cli
|
|
||||||
- markdownlint 'content/**/*.md' 'README.md' -p .gitignore
|
- markdownlint 'content/**/*.md' 'README.md' -p .gitignore
|
||||||
environment:
|
|
||||||
FORCE_COLOR: true
|
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
|
||||||
|
|
||||||
- name: spellcheck
|
- name: spellcheck
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
|
@ -87,6 +82,6 @@ trigger:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: e7012916cab31a75c05e00afe83fea803df3749200eec632c78b170f2d7120da
|
hmac: b378c1b81ad1a49b89dd49020b1092071852b2609501675d9098d88e449baa49
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# renovate: datasource=github-releases depName=thegeeklab/hugo-geekdoc
|
||||||
|
THEME_VERSION := v0.8.2
|
||||||
|
THEME := hugo-geekdoc
|
||||||
|
BASEDIR := .
|
||||||
|
THEMEDIR := $(BASEDIR)/themes
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: doc
|
||||||
|
|
||||||
|
.PHONY: doc
|
||||||
|
doc: doc-assets
|
||||||
|
|
||||||
|
.PHONY: doc-assets
|
||||||
|
doc-assets:
|
||||||
|
mkdir -p $(THEMEDIR)/$(THEME)/ ; \
|
||||||
|
curl -sSL "https://github.com/thegeeklab/$(THEME)/releases/download/${THEME_VERSION}/$(THEME).tar.gz" | tar -xz -C $(THEMEDIR)/$(THEME)/ --strip-components=1
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -rf $(THEMEDIR) && \
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": ["github>thegeeklab/renovate-presets"]
|
||||||
|
}
|
Loading…
Reference in New Issue