Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
bd18aa1aac | |||
6c21042373 | |||
99c16ce1f2 | |||
f30e0afdcd | |||
9fb74ed327 | |||
ab7b4a2fed | |||
c4fbdb4546 | |||
71a20b93b4 |
@ -1,5 +1,5 @@
|
|||||||
# gitzone ci_docker
|
# gitzone ci_docker
|
||||||
image: hosttoday/ht-docker-node:npmci
|
image: docker:19.03.1
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
@ -7,8 +7,26 @@ cache:
|
|||||||
key: "$CI_BUILD_STAGE"
|
key: "$CI_BUILD_STAGE"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- npm install -g @shipzone/npmci
|
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
|
- apk update && apk add --no-cache \
|
||||||
|
git \
|
||||||
|
openssl \
|
||||||
|
ca-certificates \
|
||||||
|
bash \
|
||||||
|
curl \
|
||||||
|
make \
|
||||||
|
gcc \
|
||||||
|
g++ \
|
||||||
|
python \
|
||||||
|
linux-headers \
|
||||||
|
paxctl \
|
||||||
|
libgcc \
|
||||||
|
libstdc++ \
|
||||||
|
gnupg \
|
||||||
|
nodejs \
|
||||||
|
nodejs-npm \
|
||||||
|
&& update-ca-certificates
|
||||||
|
- npm install -g npmci
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
@ -27,16 +45,16 @@ testSTABLE:
|
|||||||
- docker
|
- docker
|
||||||
|
|
||||||
release:
|
release:
|
||||||
image: hosttoday/ht-docker-dbase:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:18-dind
|
||||||
stage: release
|
stage: release
|
||||||
script:
|
script:
|
||||||
- npmci node install stable
|
- npmci node install stable
|
||||||
- npmci docker login
|
- npmci docker login
|
||||||
- npmci docker build
|
- npmci docker build
|
||||||
- npmci docker test
|
- npmci docker test
|
||||||
- npmci docker push registry.gitlab.com
|
- npmci docker push
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
FROM docker:git
|
FROM docker:19.03.1
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache \
|
RUN apk update && apk add --no-cache \
|
||||||
|
git \
|
||||||
openssl \
|
openssl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
bash \
|
bash \
|
||||||
|
5
package-lock.json
generated
Normal file
5
package-lock.json
generated
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name": "ht-docker-dbase",
|
||||||
|
"version": "1.0.10",
|
||||||
|
"lockfileVersion": 1
|
||||||
|
}
|
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "ht-docker-dbase",
|
"name": "ht-docker-dbase",
|
||||||
"version": "1.0.6",
|
"version": "1.0.10",
|
||||||
"description": "easy CI for docker images",
|
"description": "easy CI for docker images",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
"test": "test"
|
"test": "test"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\"",
|
||||||
"build": "echo \"Not needed for now\""
|
"build": "echo \"Not needed for now\""
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
Reference in New Issue
Block a user