@leverege/build-tools 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server/repo-init/config.tgz +0 -0
- package/package.json +5 -5
- package/src/circleate +2 -64
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"author": "Leverege Devs",
|
|
51
51
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"chalk": "^4.1.
|
|
53
|
+
"chalk": "^4.1.2",
|
|
54
54
|
"clear": "^0.1.0",
|
|
55
55
|
"clipboardy": "^2.3.0",
|
|
56
|
-
"command-line-args": "^5.
|
|
56
|
+
"command-line-args": "^5.2.0",
|
|
57
57
|
"command-line-usage": "^6.1.1",
|
|
58
58
|
"deepmerge": "^4.2.2",
|
|
59
59
|
"dotenv": "^10.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"parse-gitignore": "^1.0.1",
|
|
72
72
|
"readline-sync": "^1.4.10",
|
|
73
73
|
"semver": "^7.3.5",
|
|
74
|
-
"simple-git": "^2.41.
|
|
74
|
+
"simple-git": "^2.41.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@babel/cli": "^7.14.8",
|
|
@@ -79,6 +79,6 @@
|
|
|
79
79
|
"@babel/node": "^7.14.7",
|
|
80
80
|
"@leverege/babel-preset-leverege-node": "^1.2.0",
|
|
81
81
|
"@leverege/eslint-config-leverege": "^3.0.0",
|
|
82
|
-
"npm": "^7.20.
|
|
82
|
+
"npm": "^7.20.3"
|
|
83
83
|
}
|
|
84
84
|
}
|
package/src/circleate
CHANGED
|
@@ -43,60 +43,14 @@ create_circle_config(){
|
|
|
43
43
|
create_server_config(){
|
|
44
44
|
cat<<EOCIRCLE > config.yml
|
|
45
45
|
version: 2.1
|
|
46
|
-
orbs:
|
|
47
|
-
gcp-gcr: circleci/gcp-gcr@0.6.1
|
|
46
|
+
#orbs:
|
|
47
|
+
# gcp-gcr: circleci/gcp-gcr@0.6.1
|
|
48
48
|
executors:
|
|
49
49
|
default:
|
|
50
50
|
description: >
|
|
51
51
|
A debian-based machine executor.
|
|
52
52
|
machine: true
|
|
53
53
|
jobs:
|
|
54
|
-
gcr:
|
|
55
|
-
# gcr build docker image and pushes to gcr
|
|
56
|
-
executor: default
|
|
57
|
-
steps:
|
|
58
|
-
- attach_workspace:
|
|
59
|
-
at: ~/project
|
|
60
|
-
- run: |
|
|
61
|
-
echo "export CONTAINER_NAME=\$(cat ~/project/container_name)" >> \$BASH_ENV
|
|
62
|
-
echo "export PACKAGE_VERSION=\$(cat ~/project/package_version)" >> \$BASH_ENV
|
|
63
|
-
echo "export NODE_IMAGE=\$(cat ~/project/node_img)" >> \$BASH_ENV
|
|
64
|
-
- run:
|
|
65
|
-
name: Check for tag version
|
|
66
|
-
command: |
|
|
67
|
-
if ! [[ \$PACKAGE_VERSION =~ ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)\$ ]]; then
|
|
68
|
-
echo "Pre-release tags detected - skipping build"
|
|
69
|
-
circleci-agent step halt
|
|
70
|
-
fi
|
|
71
|
-
- gcp-gcr/gcr-auth
|
|
72
|
-
- run:
|
|
73
|
-
name: Enable Kaniko
|
|
74
|
-
command: gcloud config set builds/use_kaniko True
|
|
75
|
-
- gcp-gcr/build-image:
|
|
76
|
-
image: \$CONTAINER_NAME
|
|
77
|
-
tag: \$PACKAGE_VERSION
|
|
78
|
-
path: docker
|
|
79
|
-
dockerfile: docker/Dockerfile
|
|
80
|
-
- gcp-gcr/push-image:
|
|
81
|
-
image: \$CONTAINER_NAME
|
|
82
|
-
tag: \$PACKAGE_VERSION
|
|
83
|
-
- run:
|
|
84
|
-
name: Check if branch is master
|
|
85
|
-
command: |
|
|
86
|
-
if [ \$CIRCLE_BRANCH == 'master' ]; then
|
|
87
|
-
echo "export GCR_TAG=stable" >> \$BASH_ENV;
|
|
88
|
-
else
|
|
89
|
-
echo "export GCR_TAG=latest" >> \$BASH_ENV;
|
|
90
|
-
fi
|
|
91
|
-
- gcp-gcr/tag-image:
|
|
92
|
-
image: \$CONTAINER_NAME
|
|
93
|
-
source-tag: \$PACKAGE_VERSION
|
|
94
|
-
target-tag: \$GCR_TAG
|
|
95
|
-
- gcp-gcr/tag-image:
|
|
96
|
-
image: \$CONTAINER_NAME
|
|
97
|
-
source-tag: \$PACKAGE_VERSION
|
|
98
|
-
target-tag: circle-\$NODE_IMAGE-\$CIRCLE_USERNAME
|
|
99
|
-
|
|
100
54
|
install:
|
|
101
55
|
docker:
|
|
102
56
|
- image: circleci/node:fermium
|
|
@@ -300,22 +254,6 @@ workflows:
|
|
|
300
254
|
- lint
|
|
301
255
|
- coverage
|
|
302
256
|
- docs
|
|
303
|
-
- gcr:
|
|
304
|
-
context: google
|
|
305
|
-
filters:
|
|
306
|
-
branches:
|
|
307
|
-
only:
|
|
308
|
-
- development
|
|
309
|
-
- /release-.*/
|
|
310
|
-
- master
|
|
311
|
-
requires:
|
|
312
|
-
- install
|
|
313
|
-
- security-check
|
|
314
|
-
- license-check
|
|
315
|
-
- lint
|
|
316
|
-
- coverage
|
|
317
|
-
- docs
|
|
318
|
-
- build
|
|
319
257
|
EOCIRCLE
|
|
320
258
|
}
|
|
321
259
|
|