Skip to content

Instantly share code, notes, and snippets.

@ekpangmichael
Last active October 5, 2019 08:40
Show Gist options
  • Save ekpangmichael/a96871ef6340b376103d3f403586e721 to your computer and use it in GitHub Desktop.
Save ekpangmichael/a96871ef6340b376103d3f403586e721 to your computer and use it in GitHub Desktop.
# Set a base docker image, using node alpine because it is lightweight
image: node:10.16.0-alpine
# This folder is cached between builds and will speed up subsequent build
cache:
paths:
- node_modules/
# Setup all the stages
stages:
- install
- test
- build
- deploy_production
# job to install dependencies
Run install:
stage: install
script:
- yarn install
# Job to run test
Run test:
stage: test
script:
- yarn test
# Job to run build
Run build:
stage: build
script:
- yarn build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment