24 lines
503 B
YAML
24 lines
503 B
YAML
pipeline:
|
|
build:
|
|
image: klakegg/hugo
|
|
|
|
update:
|
|
image: alpine/git
|
|
commands:
|
|
- git fetch --no-tags origin +refs/heads/master
|
|
- git switch pages
|
|
- git add public/*
|
|
- git commit -m build
|
|
|
|
deploy:
|
|
image: appleboy/drone-git-push
|
|
secrets: [ssh_priv_key]
|
|
settings:
|
|
branch: pages
|
|
remote: git@gitnet.fr:deblan/pages-ci.git
|
|
force: false
|
|
commit: false
|
|
ssh_key: ${SSH_PRIV_KEY}
|
|
author_name: CI
|
|
author_email: ci@gitnet.fr
|