automate deploy

This commit is contained in:
Julien Fastré 2022-05-11 10:52:07 +02:00
parent f120006111
commit 42cfe67095
2 changed files with 39 additions and 0 deletions

36
.drone.yml Normal file
View 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
View File

@ -0,0 +1,3 @@
FROM caddy:2-alpine
ADD build/ /usr/share/caddy/