Skip to content
Snippets Groups Projects
Select Git revision
5 results Searching

1.20.package.json

Blame
  • .gitlab-ci.yml 504 B
    variables:
      DOCKER_HOST: tcp://docker:2375/
      DOCKER_DRIVER: overlay2
    
    stages:
      - build
    
    before_script:
      - apk update
      - apk add nodejs npm
      - apk add yarn
      - apk add curl
      - export TAG=${CI_COMMIT_TAG:-latest}
    
    
    build:
      stage: build
      services:
        - docker:18.09.6-dind
      script:
        - rm ~/.npmrc
        - ./build.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:$TAG
      only:
        - master