palettetest/.drone.yml

35 lines
794 B
YAML
Raw Normal View History

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
2024-01-12 10:06:11 +00:00
# - name: submodule fetch
# image: drone/git
# commands:
# - git submodule update --init --recursive
2024-01-12 09:51:00 +00:00
- name: Build
image: plugins/hugo
settings:
validate: true
2024-01-12 10:08:08 +00:00
config: ./hugo.toml
- name: check Build
image: plugins/hugo
commands:
- ls
2023-12-13 13:04:29 +00:00
- name: Deploy
2023-12-13 12:35:29 +00:00
image: plugins/hugo
2023-12-13 13:33:55 +00:00
environment:
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: AWS_SECRET_ACCESS_KEY
2023-12-13 13:24:07 +00:00
commands:
- hugo deploy --config hugo.toml