palettetest/.drone.yml
maxime-cool da78d6346b
All checks were successful
continuous-integration/drone/push Build is passing
added public ls
2024-01-12 11:09:19 +01:00

37 lines
823 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
- echo "Checking folder"
- ls
# - name: submodule fetch
# image: drone/git
# commands:
# - git submodule update --init --recursive
- name: Build
image: plugins/hugo
settings:
validate: true
config: ./hugo.toml
- 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:
- hugo deploy --config hugo.toml