debian-mirror-gitlab/lib/gitlab/ci/templates/Pages/Jigsaw.gitlab-ci.yml

38 lines
846 B
YAML
Raw Normal View History

2018-12-05 23:21:45 +05:30
# 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:
2019-09-04 21:01:54 +05:30
- vendor/
- node_modules/
2018-12-05 23:21:45 +05:30
before_script:
2019-07-07 11:18:12 +05:30
# Update packages
2018-12-05 23:21:45 +05:30
- 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
2019-07-07 11:18:12 +05:30
# Install Composer and project dependencies
2018-12-05 23:21:45 +05:30
- curl -sS https://getcomposer.org/installer | php
2019-07-07 11:18:12 +05:30
- php composer.phar install
# Install Node dependencies
2018-12-05 23:21:45 +05:30
- npm install
pages:
script:
2019-09-04 21:01:54 +05:30
- npm run production
- mv build_production public
2018-12-05 23:21:45 +05:30
artifacts:
paths:
2019-09-04 21:01:54 +05:30
- public
2018-12-05 23:21:45 +05:30
only:
2019-09-04 21:01:54 +05:30
- master