add drone config and Dockerfile
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jeppe Ernst 2020-01-02 22:17:54 +01:00
parent 062564a9f8
commit c827c946b4
2 changed files with 26 additions and 0 deletions

18
.drone.yml Normal file
View File

@ -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

8
Dockerfile Normal file
View File

@ -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