28 lines
No EOL
581 B
YAML
28 lines
No EOL
581 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
#secrets: [ AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY ]
|
|
|
|
steps:
|
|
- name: Version check
|
|
image: plugins/hugo
|
|
commands:
|
|
- echo "Checking Hugo version."
|
|
- hugo version
|
|
- name: Folder check
|
|
image: git/alpine
|
|
commands:
|
|
- echo "Checking folder"
|
|
- dir
|
|
- name: Build
|
|
image: plugins/hugo
|
|
settings:
|
|
config: hugo.toml
|
|
validate: true
|
|
commands:
|
|
- hugo
|
|
#- minify -r -o /drone/src/build /drone/src/build
|
|
- name: Deploy
|
|
image: plugins/hugo
|
|
# commands:
|
|
# - hugo deploy |