regroupement build et deploy
This commit is contained in:
parent
afe2caf4ce
commit
152855f6fd
1 changed files with 1 additions and 11 deletions
12
.drone.yml
12
.drone.yml
|
@ -11,17 +11,6 @@ steps:
|
||||||
- hugo version
|
- hugo version
|
||||||
- echo "Checking folder"
|
- echo "Checking folder"
|
||||||
- ls
|
- ls
|
||||||
- name: Add theme as submodule
|
|
||||||
image: drone/git
|
|
||||||
commands:
|
|
||||||
- git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
|
|
||||||
- name: Build
|
|
||||||
image: plugins/hugo
|
|
||||||
settings:
|
|
||||||
validate: true
|
|
||||||
commands:
|
|
||||||
- hugo --config hugo.toml
|
|
||||||
#- minify -r -o /drone/src/build /drone/src/build
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
image: plugins/hugo
|
image: plugins/hugo
|
||||||
environment:
|
environment:
|
||||||
|
@ -30,4 +19,5 @@ steps:
|
||||||
AWS_SECRET_ACCESS_KEY:
|
AWS_SECRET_ACCESS_KEY:
|
||||||
from_secret: AWS_SECRET_ACCESS_KEY
|
from_secret: AWS_SECRET_ACCESS_KEY
|
||||||
commands:
|
commands:
|
||||||
|
- hugo --config hugo.toml
|
||||||
- hugo deploy --config hugo.toml
|
- hugo deploy --config hugo.toml
|
Loading…
Reference in a new issue