This commit is contained in:
parent
ddf989a7ba
commit
593d616425
1 changed files with 10 additions and 7 deletions
17
.drone.yml
17
.drone.yml
|
@ -7,7 +7,6 @@ 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"
|
||||
|
@ -20,11 +19,15 @@ steps:
|
|||
- hugo --config hugo.toml
|
||||
#- minify -r -o /drone/src/build /drone/src/build
|
||||
- name: Deploy
|
||||
image: plugins/hugo
|
||||
image: alpine/git
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: AWS_ACCESS_KEY_ID
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: AWS_SECRET_ACCESS_KEY
|
||||
GIT_USERNAME:
|
||||
from_secret: GIT_USERNAME
|
||||
GIT_PASSWORD:
|
||||
from_secret: GIT_PASSWORD
|
||||
commands:
|
||||
- hugo deploy --config hugo.toml
|
||||
- git clone https://julienDai@git.deuxfleurs.fr/julienDai/test
|
||||
- cd test
|
||||
- git config user.name "julienDai"
|
||||
- git config user.email "julien.dai@imt-atlantique.net"
|
||||
- git push origin main
|
Loading…
Reference in a new issue