diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4294fa6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,54 @@ +image: hosttoday/ht-docker-dbase +services: + - docker:dind + +stages: + - build + - test + - release + - trigger + +before_script: + - npm uninstall -g npmci + - npm install -g npmci + - npmci prepare docker + + +build: + stage: build + script: + - npmci build docker + tags: + - lossless + - priv + + +test: + stage: test + script: + - npmci test docker + only: + - master + tags: + - lossless + - priv + +release: + stage: release + script: + - npmci publish npm + only: + - master + tags: + - lossless + - priv + +trigger: + stage: trigger + script: + - npmci trigger + only: + - master + tags: + - lossless + - priv \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..45923fb --- /dev/null +++ b/.npmignore @@ -0,0 +1,3 @@ +Dockerfile +coverage/ +docs/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..af6e43e --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +FROM hosttoday/ht-docker-node:lts \ No newline at end of file