56 lines
1009 B
YAML
56 lines
1009 B
YAML
# gitzone custom
|
|
image: docker:19.03.1
|
|
|
|
before_script:
|
|
- 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
|
|
- npm config set unsafe-perm true
|
|
- npm install -g @shipzone/npmci
|
|
- npmci npm prepare
|
|
|
|
stages:
|
|
- test
|
|
- release
|
|
- trigger
|
|
- pages
|
|
|
|
testSTABLE:
|
|
stage: test
|
|
script:
|
|
- npmci node install stable
|
|
- npmci npm install
|
|
- npmci npm test
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
|
tags:
|
|
- docker
|
|
- lossless
|
|
|
|
release:
|
|
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
|
|
services:
|
|
- docker:stable-dind
|
|
stage: release
|
|
script:
|
|
- npmci node install stable
|
|
- npmci docker login
|
|
- npmci docker build
|
|
- npmci docker test
|
|
- npmci docker push
|
|
only:
|
|
- tags
|
|
tags:
|
|
- docker
|
|
- priv
|
|
|
|
trigger:
|
|
stage: trigger
|
|
script:
|
|
- npmci trigger
|
|
only:
|
|
- tags
|
|
tags:
|
|
- docker
|