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

52 lines
992 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
2019-08-27 16:12:23 +00:00
services:
- docker:stable-dind
2016-06-02 11:59:58 +00:00
before_script:
2019-08-27 16:12:23 +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
2021-02-27 00:11:39 +00:00
- apk add --no-cache libgcc libstdc++ gnupg nodejs-current nodejs-npm
2019-08-27 16:12:23 +00:00
- update-ca-certificates
2019-11-23 21:32:41 +00:00
- cp ./stack-fix.c /lib/
2019-11-23 21:34:07 +00:00
- set -ex
- apk add --no-cache --virtual .build-deps build-base
2019-11-23 21:36:48 +00:00
- gcc -shared -fPIC /lib/stack-fix.c -o /lib/stack-fix.so
2019-11-23 21:34:07 +00:00
- apk del .build-deps
2019-11-23 21:35:32 +00:00
- export LD_PRELOAD="/lib/stack-fix.so"
2021-02-26 23:50:39 +00:00
- npm config set unsafe-perm true
2021-02-27 00:11:39 +00:00
- node -v && npm -v
2019-08-27 16:12:23 +00:00
- npm install -g @shipzone/npmci
2021-02-26 23:25:49 +00:00
- npmci npm prepare
2016-06-02 11:59:58 +00:00
2019-06-19 09:47:48 +00:00
stages:
- release
- trigger
2016-06-07 14:10:08 +00:00
2016-06-02 11:59:58 +00:00
release:
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
2019-08-27 16:12:23 +00:00
- lossless
2019-06-19 09:47:48 +00:00
- priv
2016-06-07 21:26:09 +00:00
trigger:
stage: trigger
script:
2019-08-27 16:12:23 +00:00
- npmci trigger
2016-06-07 21:26:09 +00:00
only:
2019-08-27 16:12:23 +00:00
- tags
2016-06-02 11:59:58 +00:00
tags:
2019-08-27 16:12:23 +00:00
- docker
- lossless
- priv