ht-docker-dbase/.gitlab-ci.yml

55 lines
948 B
YAML
Raw Normal View History

2019-08-27 16:03:34 +00:00
# gitzone custom
2019-08-27 15:56:33 +00:00
image: docker:19.03.1
2016-06-02 11:59:58 +00:00
before_script:
2019-08-27 16:03:34 +00:00
- apk update
- apk add --no-cache git openssl ca-certificates bash curl
- apk add --no-cache make gcc g++ python linux-headers paxctl
- apk add --no-cache libgcc libstdc++ gnupg nodejs nodejs-npm
- update-ca-certificates
2019-08-27 16:06:53 +00:00
- npm config set unsafe-perm true
2019-08-27 16:04:36 +00:00
- npm install -g @shipzone/npmci
- npmci npm prepare
2016-06-02 11:59:58 +00:00
2019-06-19 09:47:48 +00:00
stages:
- test
- release
- trigger
- pages
2016-06-07 14:10:08 +00:00
2019-06-19 09:47:48 +00:00
testSTABLE:
2016-06-07 14:10:08 +00:00
stage: test
script:
2019-06-19 09:47:48 +00:00
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
2016-06-07 14:10:08 +00:00
tags:
- docker
2019-08-27 16:07:26 +00:00
- lossless
2016-06-07 14:10:08 +00:00
2016-06-02 11:59:58 +00:00
release:
2019-06-19 09:47:48 +00:00
services:
2019-08-27 16:09:16 +00:00
- docker:stable-dind
2016-06-02 11:59:58 +00:00
stage: release
script:
2019-06-19 09:47:48 +00:00
- npmci node install stable
- npmci docker login
- npmci docker build
- npmci docker test
2019-06-19 09:55:12 +00:00
- npmci docker push
2016-06-02 11:59:58 +00:00
only:
2019-06-19 09:47:48 +00:00
- tags
2016-06-07 21:26:09 +00:00
tags:
2019-06-19 09:47:48 +00:00
- docker
- priv
2016-06-07 21:26:09 +00:00
trigger:
stage: trigger
script:
- npmci trigger
only:
2019-06-19 09:47:48 +00:00
- tags
2016-06-02 11:59:58 +00:00
tags:
2016-06-05 03:25:53 +00:00
- docker