2023-12-15 08:38:10 +00:00
|
|
|
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
|
2023-12-15 09:47:55 +00:00
|
|
|
image: alpine/git
|
2023-12-15 08:38:10 +00:00
|
|
|
environment:
|
2023-12-15 09:47:55 +00:00
|
|
|
GIT_USERNAME:
|
|
|
|
from_secret: GIT_USERNAME
|
|
|
|
GIT_PASSWORD:
|
|
|
|
from_secret: GIT_PASSWORD
|
2023-12-15 08:38:10 +00:00
|
|
|
commands:
|
2023-12-15 09:47:55 +00:00
|
|
|
- git clone https://julienDai@git.deuxfleurs.fr/julienDai/testconfig.git
|
|
|
|
- cd testconfig
|
|
|
|
- git config user.name "julienDai"
|
|
|
|
- git config user.email "julien.dai@imt-atlantique.net"
|
|
|
|
- git push origin main
|