add CI
This commit is contained in:
parent
2d5d6735e5
commit
aa8dcfa681
47
.drone.yml
Normal file
47
.drone.yml
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
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
|
||||||
|
|
||||||
|
- 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
|
Loading…
x
Reference in New Issue
Block a user