Compare commits
	
		
			13 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| e490c6f730 | |||
| bdf4815145 | |||
| 84fdf8b139 | |||
| 545896821d | |||
| c7516458bd | |||
| c2f92e63c5 | |||
| d4116aefdb | |||
| 0f5f1f7772 | |||
| 7722187ea5 | |||
| 734a21c925 | |||
| bb36beb682 | |||
| 3417ca83ed | |||
| dea6264c34 | 
| @@ -19,6 +19,7 @@ mirror: | |||||||
|   - npmci git mirror |   - npmci git mirror | ||||||
|   tags: |   tags: | ||||||
|   - docker |   - docker | ||||||
|  |   - notpriv | ||||||
|  |  | ||||||
| snyk: | snyk: | ||||||
|   stage: security |   stage: security | ||||||
| @@ -28,6 +29,26 @@ snyk: | |||||||
|     - npmci command snyk test |     - npmci command snyk test | ||||||
|   tags: |   tags: | ||||||
|   - docker |   - docker | ||||||
|  |   - notpriv | ||||||
|  |  | ||||||
|  | codequality: | ||||||
|  |   stage: security | ||||||
|  |   image: docker:stable | ||||||
|  |   allow_failure: true | ||||||
|  |   services: | ||||||
|  |     - docker:stable-dind | ||||||
|  |   script: | ||||||
|  |     - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') | ||||||
|  |     - docker run | ||||||
|  |         --env SOURCE_CODE="$PWD" | ||||||
|  |         --volume "$PWD":/code | ||||||
|  |         --volume /var/run/docker.sock:/var/run/docker.sock | ||||||
|  |         "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code | ||||||
|  |   artifacts: | ||||||
|  |     paths: [codeclimate.json] | ||||||
|  |   tags: | ||||||
|  |   - docker | ||||||
|  |   - priv | ||||||
|  |  | ||||||
| testLEGACY: | testLEGACY: | ||||||
|   stage: test |   stage: test | ||||||
| @@ -38,6 +59,7 @@ testLEGACY: | |||||||
|   coverage: /\d+.?\d+?\%\s*coverage/ |   coverage: /\d+.?\d+?\%\s*coverage/ | ||||||
|   tags: |   tags: | ||||||
|   - docker |   - docker | ||||||
|  |   - notpriv | ||||||
|   allow_failure: true |   allow_failure: true | ||||||
|  |  | ||||||
| testLTS: | testLTS: | ||||||
| @@ -49,6 +71,7 @@ testLTS: | |||||||
|   coverage: /\d+.?\d+?\%\s*coverage/ |   coverage: /\d+.?\d+?\%\s*coverage/ | ||||||
|   tags: |   tags: | ||||||
|   - docker |   - docker | ||||||
|  |   - notpriv | ||||||
|      |      | ||||||
| testSTABLE: | testSTABLE: | ||||||
|   stage: test |   stage: test | ||||||
| @@ -59,16 +82,19 @@ testSTABLE: | |||||||
|   coverage: /\d+.?\d+?\%\s*coverage/ |   coverage: /\d+.?\d+?\%\s*coverage/ | ||||||
|   tags: |   tags: | ||||||
|   - docker |   - docker | ||||||
|  |   - notpriv | ||||||
|  |  | ||||||
| release: | release: | ||||||
|   stage: release |   stage: release | ||||||
|   script: |   script: | ||||||
|  |   - npmci node install lts | ||||||
|   - npmci npm prepare |   - npmci npm prepare | ||||||
|   - npmci npm publish |   - npmci npm publish | ||||||
|   only: |   only: | ||||||
|   - tags |   - tags | ||||||
|   tags: |   tags: | ||||||
|   - docker |   - docker | ||||||
|  |   - notpriv | ||||||
|  |  | ||||||
| trigger: | trigger: | ||||||
|   stage: trigger |   stage: trigger | ||||||
| @@ -78,6 +104,7 @@ trigger: | |||||||
|   - tags |   - tags | ||||||
|   tags: |   tags: | ||||||
|   - docker |   - docker | ||||||
|  |   - notpriv | ||||||
|  |  | ||||||
| pages: | pages: | ||||||
|   image: hosttoday/ht-docker-node:npmci |   image: hosttoday/ht-docker-node:npmci | ||||||
| @@ -87,6 +114,7 @@ pages: | |||||||
|     - npmci command npmpage |     - npmci command npmpage | ||||||
|   tags: |   tags: | ||||||
|     - docker |     - docker | ||||||
|  |     - notpriv | ||||||
|   only: |   only: | ||||||
|     - tags |     - tags | ||||||
|   artifacts: |   artifacts: | ||||||
|   | |||||||
| @@ -1,5 +0,0 @@ | |||||||
| pages/ |  | ||||||
| coverage/ |  | ||||||
| test/ |  | ||||||
| node_modules/ |  | ||||||
| config.json |  | ||||||
| @@ -5,11 +5,8 @@ | |||||||
|         "cli": true |         "cli": true | ||||||
|     }, |     }, | ||||||
|     "npmci": { |     "npmci": { | ||||||
|         "globalNpmTools": [ |  | ||||||
|             "npmts" |  | ||||||
|         ], |  | ||||||
|         "npmGlobalTools": [ |         "npmGlobalTools": [ | ||||||
|             "npmts" |             "@gitzone/npmts" | ||||||
|         ], |         ], | ||||||
|         "npmAccessLevel": "public" |         "npmAccessLevel": "public" | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "@shipzone/npmci", |   "name": "@shipzone/npmci", | ||||||
|   "version": "3.0.33", |   "version": "3.0.40", | ||||||
|   "description": "node and docker in gitlab ci on steroids", |   "description": "node and docker in gitlab ci on steroids", | ||||||
|   "main": "dist/index.js", |   "main": "dist/index.js", | ||||||
|   "typings": "dist/index.d.ts", |   "typings": "dist/index.d.ts", | ||||||
|   | |||||||
| @@ -66,12 +66,27 @@ let publish = async () => { | |||||||
|     npmAccessCliString = `--access=${config.npmAccessLevel}`; |     npmAccessCliString = `--access=${config.npmAccessLevel}`; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   // -> preparing | ||||||
|  |   plugins.beautylog.log(`now preparing environment:`); | ||||||
|  |   prepare(); | ||||||
|  |   await bash(`npm -v`); | ||||||
|  |  | ||||||
|   // -> build it |   // -> build it | ||||||
|   await bash(`yarn install`); |   await bash(`yarn install`); | ||||||
|   await bash(`yarn run build`); |   await bash(`yarn run build`); | ||||||
|  |  | ||||||
|  |   plugins.beautylog.success(`Nice!!! The build for the publication was successfull!`); | ||||||
|  |   plugins.beautylog.log(`Lets clean up so we don't publish any packages that don't belong to us:`) | ||||||
|  |   // -> clean up before we publish stuff | ||||||
|  |   await bash(`rm -r .yarn`); | ||||||
|  |   await bash(`rm -r node_modules`); | ||||||
|  |  | ||||||
|  |   plugins.beautylog.success(`Cleaned up!:`); | ||||||
|  |  | ||||||
|   // -> publish it |   // -> publish it | ||||||
|  |   plugins.beautylog.log(`now invoking npm to publish the package!`); | ||||||
|   await bash(`npm publish ${npmAccessCliString}`); |   await bash(`npm publish ${npmAccessCliString}`); | ||||||
|  |   plugins.beautylog.success(`Package was successfully published!`); | ||||||
| }; | }; | ||||||
|  |  | ||||||
| let install = async (): Promise<void> => { | let install = async (): Promise<void> => { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user