sudo: required

services:
  - docker

env:
  - NODE_VERSION=latest
  - NODE_VERSION=lts
  - NODE_VERSION=old

script:
  - make build-$NODE_VERSION
  - make test-all-$NODE_VERSION

deploy:
  provider: script
  script: docker login -e $DOCKER_EMAIL -u $DOCKER_USERNAME -p $DOCKER_PASSWORD && make push-$NODE_VERSION
  on:
    repo: 'umweltdk/docker-node'
    branch: master

sudo: required

services:
  - docker

env:
  - NODE_VERSION=latest
  - NODE_VERSION=lts
  - NODE_VERSION=old
  - NODE_VERSION=4.3.2
  - NODE_VERSION=6.10.2

script:
  - make build-$NODE_VERSION
  - make test-all-$NODE_VERSION

deploy:
  provider: script
  script: docker login -e $DOCKER_EMAIL -u $DOCKER_USERNAME -p $DOCKER_PASSWORD && make push-$NODE_VERSION
  on:
    repo: 'umweltdk/docker-node'
    branch: master

Build aws lambda specific node versions
Build aws lambda specific node versions