Add drone config
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Pavle Portic 2020-06-08 15:46:09 +02:00
parent a418e81949
commit 7d3a49f833
Signed by: TheEdgeOfRage
GPG Key ID: 6758ACE46AA2A849
3 changed files with 31 additions and 1 deletions

24
.drone.yml Normal file
View File

@ -0,0 +1,24 @@
---
kind: pipeline
type: docker
name: presentation-deploy
image_pull_secrets:
- docker_credentials
steps:
- name: build
image: hub.theedgeofrage.com/revealjs-builder
- name: deploy
image: plugins/s3
settings:
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
bucket: pavle-presentations
source: _build/revealjs/**/*
target: /serverless
path_style: true
endpoint: https://minio.theedgeofrage.com

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM python:3.8-slim
WORKDIR /app
ENTRYPOINT ["sphinx-build", "-M", "revealjs", ".", "_build"]
RUN pip install sphinx-revealjs sphinxcontrib-gtagjs