initial commit
This commit is contained in:
42
README.md
Normal file
42
README.md
Normal file
@@ -0,0 +1,42 @@
|
||||
# docker-hugo
|
||||
|
||||
[](https://drone.asperti.com/paspo/docker-hugo)
|
||||
|
||||
Simple container for hugo development
|
||||
|
||||
## build
|
||||
|
||||
```bash
|
||||
docker build . -t docker.asperti.com/paspo/hugo
|
||||
```
|
||||
|
||||
## run
|
||||
|
||||
Version check:
|
||||
|
||||
```bash
|
||||
docker run --rm -ti docker.asperti.com/paspo/hugo version
|
||||
```
|
||||
|
||||
Build hugo website:
|
||||
|
||||
```bash
|
||||
docker run --rm -ti \
|
||||
-v "$PWD:/src" docker.asperti.com/paspo/hugo -s /src --gc --minify
|
||||
```
|
||||
|
||||
## drone plugin
|
||||
|
||||
```yaml
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: deploy
|
||||
|
||||
steps:
|
||||
- name: build hugo
|
||||
image: docker.asperti.com/paspo/hugo:latest
|
||||
pull: always
|
||||
commands:
|
||||
- "hugo -s /drone/src --gc --minify"
|
||||
```
|
||||
Reference in New Issue
Block a user