2023-12-05 11:28:35 +00:00
|
|
|
kind: pipeline
|
2023-12-06 14:36:30 +00:00
|
|
|
type: docker
|
2023-12-05 11:28:35 +00:00
|
|
|
name: default
|
2023-12-06 14:57:16 +00:00
|
|
|
#secrets: [ AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY ]
|
2023-12-05 11:28:35 +00:00
|
|
|
|
|
|
|
steps:
|
2023-12-13 13:04:29 +00:00
|
|
|
- name: Version check
|
|
|
|
image: plugins/hugo
|
|
|
|
commands:
|
|
|
|
- echo "Checking Hugo version."
|
|
|
|
- hugo version
|
2023-12-13 13:19:05 +00:00
|
|
|
- echo "Checking folder"
|
2023-12-13 13:21:32 +00:00
|
|
|
- ls
|
2023-12-13 13:04:29 +00:00
|
|
|
- name: Build
|
|
|
|
image: plugins/hugo
|
2023-12-13 13:05:11 +00:00
|
|
|
settings:
|
|
|
|
validate: true
|
2023-12-06 15:10:21 +00:00
|
|
|
commands:
|
2023-12-13 13:23:11 +00:00
|
|
|
- hugo --config hugo.toml
|
2023-12-13 13:04:29 +00:00
|
|
|
#- minify -r -o /drone/src/build /drone/src/build
|
|
|
|
- name: Deploy
|
2023-12-13 12:35:29 +00:00
|
|
|
image: plugins/hugo
|
2023-12-13 13:24:07 +00:00
|
|
|
commands:
|
|
|
|
- hugo deploy --config hugo.toml
|