-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from lowply/v2
v2
- Loading branch information
Showing
3 changed files
with
26 additions
and
24 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,15 +1,6 @@ | ||
FROM debian:9-slim | ||
|
||
LABEL "com.github.actions.name"="Build Hugo" | ||
LABEL "com.github.actions.description"="Build Hugo" | ||
LABEL "com.github.actions.icon"="code" | ||
LABEL "com.github.actions.color"="purple" | ||
LABEL "repository"="https://github.com/lowply/build-hugo" | ||
LABEL "homepage"="https://github.com/lowply" | ||
LABEL "maintainer"="Sho Mizutani <[email protected]>" | ||
|
||
FROM debian:buster-slim | ||
RUN apt-get update -y && apt-get install ca-certificates -y | ||
RUN update-ca-certificates | ||
|
||
ADD https://github.com/gohugoio/hugo/releases/download/v0.55.6/hugo_extended_0.55.6_Linux-64bit.deb /usr/local/src | ||
RUN dpkg -i /usr/local/src/hugo_extended_0.55.6_Linux-64bit.deb | ||
ADD https://github.com/gohugoio/hugo/releases/download/v0.58.2/hugo_extended_0.58.2_Linux-64bit.deb /tmp | ||
RUN dpkg -i /tmp/hugo_extended_0.58.2_Linux-64bit.deb | ||
ENTRYPOINT hugo |
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 |
---|---|---|
|
@@ -4,19 +4,21 @@ | |
|
||
A GitHub Action to build Hugo site. | ||
|
||
- Using [Hugo extended version 0.55.6](https://github.com/gohugoio/hugo/releases/tag/v0.55.6) | ||
- Using [debian:9-slim](https://hub.docker.com/_/debian/) for the base image | ||
- Using [Hugo extended version 0.58.2](https://github.com/gohugoio/hugo/releases/tag/v0.58.2) | ||
- Using [debian:buster-slim](https://hub.docker.com/_/debian/) as the base image | ||
|
||
Example workflow | ||
|
||
``` | ||
workflow "Build" { | ||
on = "push" | ||
resolves = ["Build Hugo"] | ||
} | ||
action "Build Hugo" { | ||
uses = "lowply/build-hugo@master" | ||
runs = "hugo" | ||
} | ||
name: Build Hugo | ||
on: [push] | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@master | ||
- name: Build Hugo | ||
uses: lowply/[email protected] | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: 'Build Hugo' | ||
author: 'Sho Mizutani <[email protected]>' | ||
description: 'Run the hugo command to build a website' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
branding: | ||
icon: 'code' | ||
color: 'purple' |