diff --git a/Dockerfile b/Dockerfile index 55e8e3ce..9531c90f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM busybox:1.28 AS fetch -ARG VERSION=0.37.1 +ARG VERSION=0.38 RUN echo "Version: ${VERSION}" ADD https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_${VERSION}_Linux-64bit.tar.gz /hugo.tar.gz diff --git a/Dockerfile-alpine b/Dockerfile-alpine index 4afe4561..c959191c 100644 --- a/Dockerfile-alpine +++ b/Dockerfile-alpine @@ -1,6 +1,6 @@ FROM busybox:1.28 AS fetch -ARG VERSION=0.37.1 +ARG VERSION=0.38 RUN echo "Version: ${VERSION}" ADD https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_${VERSION}_Linux-64bit.tar.gz /hugo.tar.gz diff --git a/README.md b/README.md index 31d397e2..07fee43b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,8 @@ Minimal docker image for [Hugo](http://gohugo.io/). This image sets `destination ## Available tags Default minimal image based upon [Busybox](https://hub.docker.com/r/_/busybox/): -* Hugo 0.37.1: `0.37.1-busybox`, `busybox`, `0.37.1`, `latest` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.37.1/Dockerfile)) +* Hugo 0.38: `0.38-busybox`, `busybox`, `0.38`, `latest` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.38/Dockerfile)) +* Hugo 0.37.1: `0.37.1-busybox`, `0.37.1` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.37.1/Dockerfile)) * Hugo 0.37: `0.37-busybox`, `0.37` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.37/Dockerfile)) * Hugo 0.36.1: `0.36.1-busybox`, `0.36.1` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.36.1/Dockerfile)) * Hugo 0.36: `0.36-busybox`, `0.36` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.36/Dockerfile)) @@ -16,7 +17,8 @@ Default minimal image based upon [Busybox](https://hub.docker.com/r/_/busybox/): * Hugo 0.34: `0.34-busybox`, `0.34` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.34/Dockerfile)) Minimal image based upon [Alpine](https://hub.docker.com/r/_/alpine/): -* Hugo 0.37.1: `0.37.1-alpine`, `alpine` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.37.1/Dockerfile-alpine)) +* Hugo 0.38: `0.38-alpine`, `alpine` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.38/Dockerfile-alpine)) +* Hugo 0.37.1: `0.37.1-alpine` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.37.1/Dockerfile-alpine)) * Hugo 0.37: `0.37-alpine` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.37/Dockerfile-alpine)) * Hugo 0.36.1: `0.36.1-alpine` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.36.1/Dockerfile-alpine)) * Hugo 0.36: `0.36-alpine` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.36/Dockerfile-alpine)) @@ -24,7 +26,8 @@ Minimal image based upon [Alpine](https://hub.docker.com/r/_/alpine/): * Hugo 0.34: `0.34-alpine` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.34/Dockerfile-alpine)) Minimal image based upon [Alpine](https://hub.docker.com/r/_/alpine/) with [Asciidoctor](http://asciidoctor.org/) installed: -* Hugo 0.37.1: `0.37.1-asciidoctor`, `asciidoctor` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.37.1/Dockerfile-asciidoctor)) +* Hugo 0.38: `0.38-asciidoctor`, `asciidoctor` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.38/Dockerfile-asciidoctor)) +* Hugo 0.37.1: `0.37.1-asciidoctor` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.37.1/Dockerfile-asciidoctor)) * Hugo 0.37: `0.37-asciidoctor` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.37/Dockerfile-asciidoctor)) * Hugo 0.36.1: `0.36.1-asciidoctor` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.36.1/Dockerfile-asciidoctor)) * Hugo 0.36: `0.36-asciidoctor` ([Dockerfile](https://github.com/klakegg/docker-hugo/blob/0.36/Dockerfile-asciidoctor)) @@ -43,11 +46,11 @@ The good practice of having a separate output folder is part of the image. Normal build: -```docker run --rm -it -v $(pwd):/src -v $(pwd)/output:/target klakegg/hugo:0.37.1``` +```docker run --rm -it -v $(pwd):/src -v $(pwd)/output:/target klakegg/hugo:0.38``` Run server: -```docker run --rm -it -v $(pwd):/src -p 1313:1313 klakegg/hugo:0.37.1 server``` +```docker run --rm -it -v $(pwd):/src -p 1313:1313 klakegg/hugo:0.38 server``` ### docker-compose @@ -56,7 +59,7 @@ Normal build: ``` build: - image: klakegg/hugo:0.37.1 + image: klakegg/hugo:0.38 volumes: - .:/src - ./output:/target @@ -66,7 +69,7 @@ Run server: ``` server: - image: klakegg/hugo:0.37.1 + image: klakegg/hugo:0.38 command: server volumes: - .:/src @@ -81,13 +84,13 @@ Those wanting to override entrypoint in the image may easily do so. On command line using `--entrypoint`: -```docker run --rm -it -v $(pwd):/src -v $(pwd)/output:/target --entrypoint hugo klakegg/hugo:0.37.1``` +```docker run --rm -it -v $(pwd):/src -v $(pwd)/output:/target --entrypoint hugo klakegg/hugo:0.38``` In docker-compose using `entrypoint`: ``` build: - image: klakegg/hugo:0.37.1 + image: klakegg/hugo:0.38 entrypoint: hugo volumes: - .:/src @@ -107,5 +110,3 @@ Folders: Ports: * Port 1313 - -