48 lines
988 B
YAML
48 lines
988 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
|
|
- name: submodules
|
|
image: alpine/git
|
|
commands:
|
|
- git submodule update --init --recursive
|
|
|
|
- name: build
|
|
image: klakegg/hugo:ext-ci
|
|
commands:
|
|
- hugo
|
|
- echo "salut"
|
|
|
|
# - name: docker build and push
|
|
# image: plugins/docker
|
|
# settings:
|
|
# # cache_from: registry.sliceofbits.com/ipsen2backend:latest
|
|
# username:
|
|
# from_secret: username
|
|
# password:
|
|
# from_secret: password
|
|
# repo: hugo-site
|
|
# registry: dockerregistry.legaragenumerique.fr/
|
|
# tags: latest
|
|
# when:
|
|
# branch:
|
|
# - master
|
|
# event:
|
|
# - push
|
|
|
|
# - name: deploy
|
|
# image: appleboy/drone-scp
|
|
# settings:
|
|
# host: "10.0.2.1"
|
|
# target: /mnt/volume1/shares/www/richard-dern.fr/www/
|
|
# source: public/*
|
|
# username:
|
|
# from_secret: ssh_user
|
|
# password:
|
|
# from_secret: ssh_password
|
|
|
|
trigger:
|
|
branch:
|
|
- master |