variables:
  DOCKER_HOST: tcp://docker:2375/
  DOCKER_DRIVER: overlay2

stages:
  - build

before_script:
  - apk update
  - apk add nodejs npm


build:
  stage: build
  services:
    - docker:18.09.6-dind
  script:
    - ./build-plugins.sh
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.e-biz.fr
    - docker build . -t $CI_REGISTRY_IMAGE
    - docker push $CI_REGISTRY_IMAGE
