palettetest/.drone.yml

50 lines
1 KiB
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:10:29 +00:00
- echo "Checking theme"
- cd themes
- ls
2024-01-12 10:11:35 +00:00
- echo "Checking ananke"
- cd ananke
- ls
2024-01-12 10:12:50 +00:00
- name: submodule fetch
image: drone/git
commands:
- git submodule update --init --recursive
- name: checking theme was fetched
image: plugins/hugo
commands:
- cd themes
- cd ananke
- ls
2024-01-12 09:51:00 +00:00
- name: Build
image: plugins/hugo
settings:
validate: true
2024-01-12 10:33:49 +00:00
extended: true
2024-01-12 10:08:08 +00:00
config: ./hugo.toml
- name: check Build
image: plugins/hugo
commands:
- ls
2024-01-12 10:09:19 +00:00
- cd public
- 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