gitlab-org--gitlab-foss/lib/gitlab/ci/templates/Pages/Jigsaw.gitlab-ci.yml
Dylan Griffith 64f2e306d9 Update all gitlab ci templates from gitlab-org/gitlab-ci-yml
Since we no longer maintain this separate repo we just needed to do one
final copy from there. See
https://gitlab.com/gitlab-org/gitlab-ce/issues/50289
2018-09-27 11:07:11 +03:00

42 lines
847 B
YAML

# Jigsaw is a simple static sites generator with Laravel's Blade.
#
# Full project: https://github.com/tightenco/jigsaw
image: php:7.2
# These folders are cached between builds
cache:
paths:
- vendor/
- node_modules/
before_script:
# Update packages
- apt-get update -yqq
# Install dependencies
- apt-get install -yqq gnupg zlib1g-dev libpng-dev
# Install Node 8
- curl -sL https://deb.nodesource.com/setup_8.x | bash -
- apt-get install -yqq nodejs
# Install php extensions
- docker-php-ext-install zip
# Install Composer and project dependencies.
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install
# Install Node dependencies.
- npm install
pages:
script:
- npm run production
- mv build_production public
artifacts:
paths:
- public
only:
- master