1
1
Fork 0

update/cleanup dockerfile and parametrize build

master
Hanjo Meinhardt 7 years ago
parent 025e7edd58
commit 3e598cdb3f

@ -1,9 +1,19 @@
pipeline: pipeline:
build:
image: alpine:edge
commands:
- sed -i 's@<VERSION>@${VERSION}@' Dockerfile
docker: docker:
image: plugins/docker image: plugins/docker
repo: bunix42/jekyll repo: bunix42/jekyll
tags: tags:
- ${DRONE_REPO_BRANCH} - ${VERSION}
email: hanjo@bunix.de
secrets: [ docker_username, docker_password ] secrets: [ docker_username, docker_password ]
matrix:
VERSION:
- 3.5.0
- 3.5.2
- 3.6.0

@ -4,16 +4,14 @@ MAINTAINER Hanjo Meinhardt <hanjo@bunix.de>
ENV dev_packages="ca-certificates build-base libffi-dev ruby-dev ruby-rdoc ruby-irb" ENV dev_packages="ca-certificates build-base libffi-dev ruby-dev ruby-rdoc ruby-irb"
RUN apk update && apk upgrade RUN apk update && apk upgrade \
&& apk add ruby ruby-json ${dev_packages} \
&& rm -rf /var/cache/apk/*
RUN apk add ruby ruby-json ${dev_packages} RUN gem install jekyll -v <VERSION> \
&& gem install jekyll-paginate \
RUN rm -rf /var/cache/apk/* && gem install jekyll-auto-image \
&& gem install jekyll-tidy \
RUN gem install jekyll && gem install jekyll-sitemap
RUN gem install jekyll-paginate
RUN gem install jekyll-auto-image
RUN gem install jekyll-tidy
RUN gem install jekyll-sitemap
RUN apk del ${dev_packages} RUN apk del ${dev_packages}

Loading…
Cancel
Save