Skip to content

Instantly share code, notes, and snippets.

@andriyor
Created April 15, 2020 17:23
Show Gist options
  • Save andriyor/39c8be304b1c761394ed12aa45742cd4 to your computer and use it in GitHub Desktop.
Save andriyor/39c8be304b1c761394ed12aa45742cd4 to your computer and use it in GitHub Desktop.
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "/certs"
stages:
- init
- verify
install dependencies:
stage: init
image: node:alpine
tags:
- docker
cache:
key:
files:
- package.json
paths:
- .npm/
policy: pull-push
script:
- npm ci --cache .npm --prefer-offline
.dependencies:
cache:
key:
files:
- package.json
paths:
- .npm/
policy: pull
lint:
stage: verify
image: node:alpine
tags:
- docker
extends: .dependencies
script:
- npm ci --cache .npm --prefer-offline
- npm run lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment