51 lines
962 B
YAML
51 lines
962 B
YAML
# gitzone custom
|
|
image: docker:19.03.1
|
|
services:
|
|
- docker:stable-dind
|
|
|
|
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-current nodejs-npm
|
|
- update-ca-certificates
|
|
- cp ./stack-fix.c /lib/
|
|
- set -ex
|
|
- apk add --no-cache --virtual .build-deps build-base
|
|
- gcc -shared -fPIC /lib/stack-fix.c -o /lib/stack-fix.so
|
|
- apk del .build-deps
|
|
- export LD_PRELOAD="/lib/stack-fix.so"
|
|
- npm config set unsafe-perm true
|
|
- node -v && npm -v
|
|
- npm install -g @shipzone/npmci
|
|
- npmci npm prepare
|
|
|
|
stages:
|
|
- release
|
|
- trigger
|
|
|
|
release:
|
|
stage: release
|
|
script:
|
|
- npmci docker login
|
|
- npmci docker build
|
|
- npmci docker test
|
|
- npmci docker push
|
|
only:
|
|
- tags
|
|
tags:
|
|
- docker
|
|
- lossless
|
|
- priv
|
|
|
|
trigger:
|
|
stage: trigger
|
|
script:
|
|
- npmci trigger
|
|
only:
|
|
- tags
|
|
tags:
|
|
- docker
|
|
- lossless
|
|
- priv
|