test/.drone.yml
Julien-DAI ddf989a7ba
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing
ssh
2023-12-15 10:03:50 +01:00

30 lines
No EOL
741 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:
- git clone git@git.deuxfleurs.fr:julienDai/test.git
- echo "Checking Hugo version."
- hugo version
- echo "Checking folder"
- ls
- name: Build
image: plugins/hugo
settings:
validate: true
commands:
- hugo --config hugo.toml
#- minify -r -o /drone/src/build /drone/src/build
- 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