diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3eb8fa2..6822b00 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,17 +3,41 @@ services: - docker:dind stages: + - build + - test - release before_script: + - npm uninstall -g docker + - npm install -g docker - npmci login docker -release: - stage: release +build: + stage: build script: - npmci build docker only: - master + tags: + - docker + - lossless + +test: + stage: test + script: + - npmci test docker + only: + - master + tags: + - docker + - lossless + +release: + stage: release + script: + - npmci publish docker + only: + - master tags: - docker - lossless \ No newline at end of file