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