diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..19c0417 --- /dev/null +++ b/.drone.yml @@ -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 + +... diff --git a/presentation/Dockerfile b/presentation/Dockerfile new file mode 100644 index 0000000..98cf05e --- /dev/null +++ b/presentation/Dockerfile @@ -0,0 +1,3 @@ +FROM caddy:2-alpine + +ADD build/ /usr/share/caddy/