Compare commits
22 Commits
Author | SHA1 | Date | |
---|---|---|---|
3ca85c4c31 | |||
44226c3c53 | |||
09b0bfa4ce | |||
cb23895d0c | |||
16dca34c6d | |||
13ff525fd2 | |||
bd18aa1aac | |||
6c21042373 | |||
99c16ce1f2 | |||
f30e0afdcd | |||
9fb74ed327 | |||
ab7b4a2fed | |||
c4fbdb4546 | |||
71a20b93b4 | |||
035d5fa833 | |||
11e654ee25 | |||
ec9b9c379e | |||
2fd9914552 | |||
76c419256c | |||
25bebf3288 | |||
1560d7daca | |||
27e1d9dd49 |
22
.gitignore
vendored
Normal file
22
.gitignore
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
.nogit/
|
||||
|
||||
# artifacts
|
||||
coverage/
|
||||
public/
|
||||
pages/
|
||||
|
||||
# installs
|
||||
node_modules/
|
||||
|
||||
# caches
|
||||
.yarn/
|
||||
.cache/
|
||||
.rpt2_cache
|
||||
|
||||
# builds
|
||||
dist/
|
||||
dist_web/
|
||||
dist_serve/
|
||||
dist_ts_web/
|
||||
|
||||
# custom
|
@ -1,63 +1,53 @@
|
||||
image: hosttoday/ht-docker-dbase
|
||||
services:
|
||||
- docker:dind
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- release
|
||||
- trigger
|
||||
# gitzone custom
|
||||
image: docker:19.03.1
|
||||
|
||||
before_script:
|
||||
- npm config set unsafe-perm true
|
||||
- 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 install -g @shipzone/npmci
|
||||
- npmci docker login
|
||||
- npmci npm prepare
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- npmci docker build
|
||||
- npmci docker push registry.gitlab.com test
|
||||
only:
|
||||
- master
|
||||
tags:
|
||||
- docker
|
||||
- lossless
|
||||
- priv
|
||||
stages:
|
||||
- test
|
||||
- release
|
||||
- trigger
|
||||
- pages
|
||||
|
||||
test:
|
||||
testSTABLE:
|
||||
stage: test
|
||||
script:
|
||||
- npmci docker pull registry.gitlab.com test
|
||||
- npmci docker test
|
||||
only:
|
||||
- master
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- lossless
|
||||
- priv
|
||||
|
||||
release:
|
||||
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
|
||||
services:
|
||||
- docker:18-dind
|
||||
stage: release
|
||||
script:
|
||||
# Hi
|
||||
- npmci docker pull registry.gitlab.com test
|
||||
- npmci docker push docker.io
|
||||
- npmci docker push registry.gitlab.com
|
||||
- npmci node install stable
|
||||
- npmci docker login
|
||||
- npmci docker build
|
||||
- npmci docker test
|
||||
- npmci docker push
|
||||
only:
|
||||
- master
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
||||
- lossless
|
||||
- priv
|
||||
|
||||
- docker
|
||||
- priv
|
||||
|
||||
trigger:
|
||||
stage: trigger
|
||||
script:
|
||||
- npmci trigger
|
||||
only:
|
||||
- master
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
||||
- lossless
|
||||
- priv
|
||||
|
@ -1,6 +1,7 @@
|
||||
FROM docker:git
|
||||
FROM docker:19.03.1
|
||||
|
||||
RUN apk update && apk add --no-cache \
|
||||
git \
|
||||
openssl \
|
||||
ca-certificates \
|
||||
bash \
|
||||
|
@ -1,2 +1,2 @@
|
||||
FROM hosttoday/ht-docker-dbase:latest
|
||||
RUN npm global add @shipzone/npmci
|
||||
RUN npm install -g @shipzone/npmci
|
||||
|
28
README.md
28
README.md
@ -1,8 +1,26 @@
|
||||
# ht-docker-dbase
|
||||
# @hosttoday/ht-docker-dbase
|
||||
easy CI for docker images
|
||||
|
||||
this docker image
|
||||
## Availabililty and Links
|
||||
* [npmjs.org (npm package)](https://www.npmjs.com/package/@hosttoday/ht-docker-dbase)
|
||||
* [gitlab.com (source)](https://gitlab.com/hosttoday/ht-docker-dbase)
|
||||
* [github.com (source mirror)](https://github.com/hosttoday/ht-docker-dbase)
|
||||
* [docs (typedoc)](https://hosttoday.gitlab.io/ht-docker-dbase/)
|
||||
|
||||
* has docker:git as base
|
||||
* has node (stable) in PATH
|
||||
* has npmci installed for easy docker builds
|
||||
## Status for master
|
||||
[](https://gitlab.com/hosttoday/ht-docker-dbase/commits/master)
|
||||
[](https://gitlab.com/hosttoday/ht-docker-dbase/commits/master)
|
||||
[](https://www.npmjs.com/package/@hosttoday/ht-docker-dbase)
|
||||
[](https://snyk.io/test/npm/@hosttoday/ht-docker-dbase)
|
||||
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||
[](https://prettier.io/)
|
||||
|
||||
## Usage
|
||||
|
||||
For further information read the linked docs at the top of this readme.
|
||||
|
||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||
|
||||
[](https://maintainedby.lossless.com)
|
||||
|
18
npmextra.json
Normal file
18
npmextra.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"npmci": {
|
||||
"dockerRegistries": [
|
||||
"registry.gitlab.com",
|
||||
"docker.io"
|
||||
]
|
||||
},
|
||||
"gitzone": {
|
||||
"module": {
|
||||
"githost": "gitlab.com",
|
||||
"gitscope": "hosttoday",
|
||||
"gitrepo": "ht-docker-dbase",
|
||||
"shortDescription": "easy CI for docker images",
|
||||
"npmPackagename": "@hosttoday/ht-docker-dbase",
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
}
|
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.13",
|
||||
"lockfileVersion": 1
|
||||
}
|
18
package.json
18
package.json
@ -1,13 +1,14 @@
|
||||
{
|
||||
"name": "ht-docker-dbase",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.13",
|
||||
"description": "easy CI for docker images",
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"test": "echo \"Error: no test specified\"",
|
||||
"build": "echo \"Not needed for now\""
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -18,5 +19,16 @@
|
||||
"bugs": {
|
||||
"url": "https://gitlab.com/hosttoday/ht-docker-dbase/issues"
|
||||
},
|
||||
"homepage": "https://gitlab.com/hosttoday/ht-docker-dbase#readme"
|
||||
"homepage": "https://gitlab.com/hosttoday/ht-docker-dbase#readme",
|
||||
"private": true,
|
||||
"files": [
|
||||
"ts/*",
|
||||
"ts_web/*",
|
||||
"dist/*",
|
||||
"dist_web/*",
|
||||
"assets/*",
|
||||
"cli.js",
|
||||
"npmextra.json",
|
||||
"readme.md"
|
||||
]
|
||||
}
|
||||
|
17
tslint.json
Normal file
17
tslint.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"extends": ["tslint:latest", "tslint-config-prettier"],
|
||||
"rules": {
|
||||
"semicolon": [true, "always"],
|
||||
"no-console": false,
|
||||
"ordered-imports": false,
|
||||
"object-literal-sort-keys": false,
|
||||
"member-ordering": {
|
||||
"options":{
|
||||
"order": [
|
||||
"static-method"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultSeverity": "warning"
|
||||
}
|
Reference in New Issue
Block a user