2024-01-19 15:45:12 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
2023-12-05 11:28:35 +00:00
|
|
|
|
2024-01-19 15:38:55 +01:00
|
|
|
|
2024-01-19 15:45:12 +01:00
|
|
|
steps:
|
|
|
|
- name: Version check
|
|
|
|
image: plugins/hugo
|
|
|
|
commands:
|
|
|
|
- echo "Checking Hugo version."
|
|
|
|
- hugo version
|
|
|
|
- echo "Checking folder"
|
|
|
|
- ls
|
|
|
|
- echo "Checking theme"
|
|
|
|
- cd themes
|
|
|
|
- ls
|
|
|
|
- echo "Checking ananke"
|
|
|
|
- cd ananke
|
|
|
|
- ls
|
|
|
|
- name: submodule fetch
|
|
|
|
image: drone/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- name: checking theme was fetched
|
|
|
|
image: plugins/hugo
|
|
|
|
commands:
|
2024-01-24 18:08:56 +01:00
|
|
|
- ls
|
2024-01-19 15:45:12 +01:00
|
|
|
- cd themes
|
|
|
|
- cd ananke
|
|
|
|
- ls
|
|
|
|
- name: Build
|
|
|
|
image: plugins/hugo
|
|
|
|
settings:
|
|
|
|
validate: true
|
|
|
|
extended: true
|
2024-01-24 18:51:32 +01:00
|
|
|
config: ./hugo_config/_default/theme_settings.toml,./hugo_config/_default/hugo.toml
|
2024-01-19 15:45:12 +01:00
|
|
|
- name: check Build
|
|
|
|
image: plugins/hugo
|
|
|
|
commands:
|
|
|
|
- ls
|
|
|
|
- cd public
|
|
|
|
- ls
|
|
|
|
- name: Deploy
|
|
|
|
image: plugins/hugo
|
|
|
|
environment:
|
|
|
|
AWS_ACCESS_KEY_ID:
|
|
|
|
from_secret: AWS_ACCESS_KEY_ID
|
|
|
|
AWS_SECRET_ACCESS_KEY:
|
|
|
|
from_secret: AWS_SECRET_ACCESS_KEY
|
|
|
|
commands:
|
2024-02-22 14:36:03 +01:00
|
|
|
- hugo deploy --config ./hugo_config/_default/hugo.toml --maxDeletes 20
|