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

43 lines
1.2 KiB
YAML
Raw Normal View History

2021-09-30 23:02:18 +05:30
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Pages/Jigsaw.gitlab-ci.yml
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
2021-04-17 20:07:23 +05:30
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH