automate deploy
This commit is contained in:
parent
f120006111
commit
42cfe67095
36
.drone.yml
Normal file
36
.drone.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-presentation
|
||||||
|
image: pandoc/minimal:2.18-alpine
|
||||||
|
commands:
|
||||||
|
- pandoc -t revealjs --resource-path=.:presentation/src/img:presentation/src/ -s presentation/src/index.md -o presentation/build/index.html
|
||||||
|
|
||||||
|
- name: build-docker-caddy
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
dockerfile: presentation/Dockerfile
|
||||||
|
context: presentation/
|
||||||
|
registry: h3m6q87t.gra7.container-registry.ovh.net
|
||||||
|
username: dronecl
|
||||||
|
password:
|
||||||
|
from_secret: registry_passwod
|
||||||
|
repo: h3m6q87t.gra7.container-registry.ovh.net/vendeeformation/presentation
|
||||||
|
tag: latest
|
||||||
|
pull_image: true
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: secret
|
||||||
|
name: registry_password
|
||||||
|
data: zoOxl9L0lYtZBWZAaW9derEWnnh0bjmVLDflxIWxRuRpJ4ucl+bc4rIPusMABeMwrCuqHFwVJfwbMFnVwkPMTkEmy3XS8Xr6rg=
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: signature
|
||||||
|
hmac: f6627efc6eb919e4c84d97383df9fbbc9a4acc6fd0de80e92a3bd4892b75c793
|
||||||
|
|
||||||
|
...
|
3
presentation/Dockerfile
Normal file
3
presentation/Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM caddy:2-alpine
|
||||||
|
|
||||||
|
ADD build/ /usr/share/caddy/
|
Loading…
Reference in New Issue
Block a user