Add Dockerfile and drone config
Some checks failed
continuous-integration/drone/push Build is failing

Adds a Dockerfile that builds the project, and a drone pipeline to push
the docker image to the docker hub.
This commit is contained in:
Emelie Graven 2021-11-24 10:39:08 +01:00
parent 14223a95a8
commit 3d90fec2a2
Signed by: emelie
GPG key ID: C11123726DBB55A1
3 changed files with 31 additions and 0 deletions

12
.drone.yml Normal file
View file

@ -0,0 +1,12 @@
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
repo: egraven/tidy-html5
auto_tag: true
username: egraven
password:
from_secret: DOCKER_TOKEN

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM debian:stable-slim AS builder
RUN apt-get update -y && \
apt-get install -y git cmake make build-essential gcc
WORKDIR /build
COPY . .
RUN cd build/cmake
RUN cmake /app -DCMAKE_BUILD_TYPE=Release
RUN make
RUN make install
FROM debian:stable-slim AS runtime
COPY --from=builder /usr/local/bin/tidy /usr/local/bin/tidy
ENTRYPOINT [ "/usr/local/bin/tidy" ]

View file

@ -1,3 +1,7 @@
[![Build Status](https://drone.data.coop/api/badges/emelie/tidy-html5/status.svg?ref=refs/heads/next)](https://drone.data.coop/emelie/tidy-html5)
## Forked from [https://github.com/htacg/tidy-html5](https://github.com/htacg/tidy-html5)
# HTACG HTML Tidy # HTACG HTML Tidy
All other READMEs and related materials can be found in [README/][100]. Although all of our materials should be linked in this README, be sure to check this directory for documents weve not yet added to this document. All other READMEs and related materials can be found in [README/][100]. Although all of our materials should be linked in this README, be sure to check this directory for documents weve not yet added to this document.