diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..31a06dae --- /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 00000000..1b115b64 --- /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