add drones
This commit is contained in:
parent
b9891e2482
commit
96aa285c17
2 changed files with 36 additions and 1 deletions
29
.drone.yml
Normal file
29
.drone.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
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: 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
|
|
@ -2,3 +2,9 @@ baseURL = 'https://example.org/'
|
|||
languageCode = 'en-us'
|
||||
title = 'My New Hugo Site'
|
||||
theme = "hyde"
|
||||
|
||||
|
||||
[deployment]
|
||||
|
||||
[[deployment.targets]]
|
||||
URL = "s3://bucket?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true®ion=garage"
|
Loading…
Reference in a new issue