Use `cibuilds/hugo:latest`:

```
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -2,16 +2,14 @@ version: 2
 jobs:
   build:
     docker:
-      - image: debian:stretch
+      - image: cibuilds/hugo:latest

     steps:
       - checkout
-
       - run:
-          name: Greeting
-          command: echo Hello, world.
-
+          name: "Run Hugo"
+          command: HUGO_ENV=production hugo -v -s src/
       - run:
-          name: Print the Current Time
-          command: date
+          name: "Test Website"
+          command: htmlproofer src/public --allow-hash-href --check-html --empty-alt-ignore --disable-external
```
This commit is contained in:
Kazuhiro MUSASHI 2019-05-04 18:49:22 +08:00
parent 003a943a1d
commit 4307a8de8a
1 changed files with 5 additions and 7 deletions

View File

@ -2,16 +2,14 @@ version: 2
jobs:
build:
docker:
- image: debian:stretch
- image: cibuilds/hugo:latest
steps:
- checkout
- run:
name: Greeting
command: echo Hello, world.
name: "Run Hugo"
command: HUGO_ENV=production hugo -v -s src/
- run:
name: Print the Current Time
command: date
name: "Test Website"
command: htmlproofer src/public --allow-hash-href --check-html --empty-alt-ignore --disable-external