| image: node:10.20.1-stretch |
| stages: [setup, verify, deploy] |
| install: |
| stage: setup |
| cache: |
| paths: |
| - .cache/npm |
| script: |
| - &npm_install |
| npm install --quiet --no-progress --cache=.cache/npm |
| lint: |
| stage: verify |
| cache: &pull_cache |
| policy: pull |
| paths: |
| - .cache/npm |
| script: |
| - *npm_install |
| - node_modules/.bin/gulp lint |
| bundle-stable: |
| stage: deploy |
| only: |
| - master@felix/antora-felix-antora |
| cache: *pull_cache |
| script: |
| - *npm_install |
| - node_modules/.bin/gulp bundle |
| - yarn pack |
| artifacts: |
| paths: |
| - felix-antora-felix-antora-v*.tgz |
| - build/felix-antora-ui-bundle.zip |