This commit is contained in:
parent
5df822545a
commit
ea6e44ddd4
15
.drone.yml
15
.drone.yml
|
@ -1,16 +1,23 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
|
clone:
|
||||||
|
depth: 1
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
path: /src
|
||||||
|
|
||||||
name: Build and Deploy
|
name: Build and Deploy
|
||||||
steps:
|
steps:
|
||||||
|
- name: Fetch submodules
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git submodule update --init --single-branch --depth=1
|
||||||
|
|
||||||
- name: Build site with Hugo
|
- name: Build site with Hugo
|
||||||
image: floryn90/hugo:ext-alpine-ci
|
image: floryn90/hugo:ext-alpine-ci
|
||||||
environment:
|
environment:
|
||||||
HUGO_SECURITY_HTTP_URLS: none
|
HUGO_SECURITY_HTTP_URLS: none
|
||||||
commands:
|
|
||||||
- git config --global --add safe.directory /drone/src
|
|
||||||
- git submodule update --init --single-branch --depth=1
|
|
||||||
- hugo
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
|
Loading…
Reference in a new issue