From c827c946b4db015d52c671687a9c8c7a25788eb8 Mon Sep 17 00:00:00 2001 From: Jeppe Ernst Date: Thu, 2 Jan 2020 22:17:54 +0100 Subject: [PATCH] add drone config and Dockerfile --- .drone.yml | 18 ++++++++++++++++++ Dockerfile | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..31a06da --- /dev/null +++ b/.drone.yml @@ -0,0 +1,18 @@ +kind: pipeline +name: default + +steps: + - name: docker + image: plugins/docker + settings: + repo: ulovliglogning/ulovliglogning.dk + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_PASSWORD + tags: + - "${DRONE_BUILD_NUMBER}" + - "latest" + when: + branch: + - master \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1b115b6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM jekyll/jekyll:3.7 AS jekyll +#ADD ./.gem-cache/bundle /usr/local/bundle +ADD . /srv/jekyll +RUN jekyll build --strict_front_matter + +FROM php:7.4.1-apache +RUN a2enmod rewrite +COPY --from=jekyll /srv/jekyll/_site /var/www/html \ No newline at end of file