Skip to content

Commit

Permalink
Use 0.53 hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Mar 11, 2019
1 parent bdc21c8 commit 7cebba4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM actionblocks/node:8.15.0-stretch
FROM actionblocks/node:8.15.1-stretch

LABEL "com.github.actions.name"="Hugo Broken Link Check"
LABEL "com.github.actions.description"="Looks for broken links in a hugo site"
Expand All @@ -9,10 +9,14 @@ LABEL "repository"="https://github.com/marccampbell/hugo-linkcheck-action"
LABEL "homepage"="http://github.com/marccampbell/hugo-linkcheck-action"
LABEL "maintainer"="Marc Campbell <[email protected]>"

ENV ACTIONBLOCKS_PUBLISHTOKEN "qhTGKj91x3c2Uurvihrfa2Qb"
ENV ACTIONBLOCKS_ENTRYPOINT "/action/entrypoint.sh"
RUN mkdir -p /tmp/hugos
WORKDIR /tmp/hugos

RUN apt-get update -y && apt-get -y --no-install-recommends install hugo && rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/gohugoio/hugo/releases/download/v0.54.0/hugo_0.54.0_Linux-64bit.tar.gz && \
tar xzvf /tmp/hugos/hugo_0.54.0_Linux-64bit.tar.gz && \
cp hugo /usr/local/bin/hugo && \
cp hugo /usr/local/bin/hugo_0.54.0 && \
rm -rf *

ENV HUGO_ACTION_COMMENT=false
ENV HUGO_STARTUP_WAIT=20
Expand All @@ -22,9 +26,10 @@ ENV HUGO_ROOT=./
ENV HUGO_CONTENT_ROOT=./content
ENV HUGO_FINAL_URL=http://localhost:1313

ADD entrypoint.sh /entrypoint.sh
ADD . /action
WORKDIR /action

RUN make deps test build

# ENTRYPOINT ["/action/entrypoint.sh"]

2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Use the hugo serve command to create a website that will be used for link checking
pushd ${HUGO_ROOT}
pushd /github/workspace/${HUGO_ROOT}
hugo serve --baseUrl http://localhost:1313 --contentDir /github/workspace/${HUGO_CONTENT_ROOT} --config /github/workspace/$HUGO_CONFIG &
HUGO_PID=$!
popd
Expand Down

0 comments on commit 7cebba4

Please sign in to comment.