diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d081427 --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..abe092d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:3.8-slim + +WORKDIR /app +ENTRYPOINT ["sphinx-build", "-M", "revealjs", ".", "_build"] + +RUN pip install sphinx-revealjs sphinxcontrib-gtagjs diff --git a/Makefile b/Makefile index 298ea9e..5128596 100644 --- a/Makefile +++ b/Makefile @@ -16,4 +16,4 @@ help: # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \ No newline at end of file + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)