1
1
Fork 0

cleanup and use build args
continuous-integration/drone/push Build is failing Details

master
Hanjo Meinhardt 3 years ago
parent 282593555a
commit 341e29bb43

@ -1,15 +1,12 @@
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
build_args:
- JEKYLL_VERSION=3.8.6
tags: tags:
- ${VERSION} - ${JEKYLL_VERSION}
secrets: [ docker_username, docker_password ] secrets: [ docker_username, docker_password ]
slack: slack:
@ -19,7 +16,7 @@ pipeline:
secrets: [ slack_webhook ] secrets: [ slack_webhook ]
matrix: matrix:
VERSION: JEKYLL_VERSION:
- 3.7.2 - 3.7.2
- 3.8.6 - 3.8.6
- 3.9.1 - 3.9.1

@ -1,14 +1,14 @@
FROM alpine:3.14 FROM alpine:3.14
MAINTAINER Hanjo Meinhardt <hanjo@bunix.de> LABEL org.opencontainers.image.authors="hanjo@bunix.de"
ENV dev_packages="ca-certificates build-base libffi-dev ruby-dev ruby-rdoc ruby-irb gcc make musl-dev" ENV dev_packages="ca-certificates build-base libffi-dev ruby-dev ruby-rdoc ruby-irb gcc make musl-dev"
RUN apk update && apk upgrade \ RUN apk add --no-cache ruby ruby-json libffi libstdc++ ${dev_packages} \
&& apk add ruby ruby-json libffi libstdc++ ${dev_packages} \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
RUN gem install jekyll -v <VERSION> \ ARG JEKYLL_VERSION
RUN gem install jekyll -v ${JEKYLL_VERSION} \
&& gem install jekyll-paginate \ && gem install jekyll-paginate \
&& gem install jekyll-auto-image \ && gem install jekyll-auto-image \
&& gem install jekyll-tidy \ && gem install jekyll-tidy \

Loading…
Cancel
Save