Created
April 15, 2020 17:23
-
-
Save andriyor/39c8be304b1c761394ed12aa45742cd4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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