Docker image for testing Jigsaw generated static sites with CircleCI.
461
A Docker image for Jigsaw, static site generator based on Laravel. The image includes HTMLProofer to test the build. Hosted on Docker Hub.
The image is based on the pre-built CircleCI PHP image, with the additions of Ruby and HTMLProofer to make it suitable for building and testing Jigsaw generated websites.
Use this .circleci/config.yml example config to get started building and testing Jigsaw websites with CircleCI.
##
## CircleCI 2.0 configuration file
##
version: 2
jobs:
build:
docker:
- image: artstorm/cibuild-jigsaw:latest
working_directory: ~/repo
steps:
- checkout
# Download and cache composer dependencies
- restore_cache:
keys:
- composer-v1-cache-{{ checksum "composer.lock" }}
- run: composer install -n --prefer-dist
- save_cache:
key: composer-v1-cache-{{ checksum "composer.lock" }}
paths:
- vendor
# Download and cache node dependencies
- restore_cache:
keys:
- node-v1-cache-{{ checksum "package-lock.json" }}
- run: npm install --no-save
- save_cache:
key: node-v1-cache-{{ checksum "package-lock.json" }}
paths:
- node_modules
# Build site
- run:
name: Build
command: npm run production
# And test it
- run:
name: Test
command: htmlproofer ./build_production --check-html --disable-external --check-img-http --check-opengraph
Content type
Image
Digest
Size
652 MB
Last updated
about 8 years ago
docker pull artstorm/cibuild-jigsaw