Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artstorm/cibuild-jigsaw
Docker image for testing Jigsaw generated static sites with CircleCI.
https://github.com/artstorm/cibuild-jigsaw
ci circleci continuous-integration docker jigsaw
Last synced: 11 days ago
JSON representation
Docker image for testing Jigsaw generated static sites with CircleCI.
- Host: GitHub
- URL: https://github.com/artstorm/cibuild-jigsaw
- Owner: artstorm
- Created: 2018-08-29T14:50:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-30T03:44:40.000Z (over 6 years ago)
- Last Synced: 2024-10-29T04:04:17.098Z (about 2 months ago)
- Topics: ci, circleci, continuous-integration, docker, jigsaw
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/artstorm/cibuild-jigsaw/
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jigsaw Docker CI Build
A Docker image for [Jigsaw](https://github.com/tightenco/jigsaw), static site generator based on Laravel. The image includes [HTMLProofer](https://github.com/gjtorikian/html-proofer) to test the build. Hosted on [Docker Hub](https://hub.docker.com/r/artstorm/cibuild-jigsaw/).
The image is based on the pre-built [CircleCI PHP image](https://circleci.com/docs/2.0/circleci-images/#php), with the additions of Ruby and HTMLProofer to make it suitable for building and testing Jigsaw generated websites.
## Usage Example
Use this `.circleci/config.yml` example config to get started building and testing Jigsaw websites with CircleCI.
```yml
##
## CircleCI 2.0 configuration file
##
version: 2
jobs:
build:
docker:
- image: artstorm/cibuild-jigsaw:latestworking_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
```