-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdc21c8
commit 7cebba4
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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 | ||
|
@@ -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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters