image: hosttoday/ht-docker-dbase services: - docker:dind variables: DOCKER_DRIVER: overlay stages: - build - test - release - trigger before_script: - npm config set unsafe-perm true - yarn global add npmci - npmci prepare docker build: stage: build script: - npmci docker build - npmci docker push test only: - master tags: - docker - lossless - priv test: stage: test script: - npmci docker pull test - npmci docker test only: - master tags: - docker - lossless - priv release: stage: release script: - npmci docker pull test - npmci docker push registry.gitlab.com only: - master tags: - docker - lossless - priv trigger: stage: trigger script: - npmci trigger only: - master tags: - docker - lossless - priv