# Node docker image on which our code would run image: node:10.5.0 cache: key: ${CI_COMMIT_REF_SLUG} paths: - node_modules/ - dist/ #This command is run before all the jobs before_script: - npm install stages: - test - build - deploy lint: stage: test script: - npm run lint test: stage: test script: - npm run test build: stage: build script: - npm run build deploy: stage: deploy image: python:2.7 before_script: - pip install awsebcli --upgrade --user script: - /root/.local/bin/eb deploy mynode-dev