@squiz/component-cli-lib 1.2.1-alpha.70 → 1.2.1-alpha.72
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/.gitlab-ci.yml +30 -21
- package/CHANGELOG.md +16 -0
- package/package.json +5 -5
package/.gitlab-ci.yml
CHANGED
|
@@ -22,25 +22,47 @@
|
|
|
22
22
|
stage: smoke-test-setup
|
|
23
23
|
image:
|
|
24
24
|
name: amazon/aws-cli
|
|
25
|
-
variables:
|
|
26
|
-
GIT_LAB_CI: "true"
|
|
27
|
-
DEPLOYMENT_LABEL: $CI_COMMIT_BRANCH
|
|
28
25
|
tags:
|
|
29
26
|
- access/aws-dx-nonprod
|
|
30
27
|
script:
|
|
31
|
-
-
|
|
32
|
-
- echo "
|
|
33
|
-
-
|
|
28
|
+
- export
|
|
29
|
+
- echo "Configuring service URLs"
|
|
30
|
+
- |2
|
|
31
|
+
echo -n "Getting 'COMPONENT_MANAGEMENT_SERVICE_URL' from CloudFormation stack: 'dx-${DEPLOYMENT_LABEL}-cmp' output: 'managementServiceURL'... "
|
|
32
|
+
COMPONENT_MANAGEMENT_SERVICE_URL="$(aws --region $AWS_REGION cloudformation describe-stacks --stack-name dx-${DEPLOYMENT_LABEL}-cmp --max-items 1 --query "Stacks[].Outputs[?contains(OutputKey,'managementServiceURL')].OutputValue" --output text)"
|
|
33
|
+
[[ $COMPONENT_MANAGEMENT_SERVICE_URL ]] || {
|
|
34
|
+
echo "✘";
|
|
35
|
+
echo "COMPONENT_MANAGEMENT_SERVICE_URL is empty or unset";
|
|
36
|
+
exit 1;
|
|
37
|
+
}
|
|
38
|
+
echo "✔︎"
|
|
39
|
+
- |2
|
|
40
|
+
echo -n "Getting 'COMPONENT_RENDER_SERVICE_URL' from CloudFormation stack: 'dx-${DEPLOYMENT_LABEL}-cmp' output: 'renderServiceURL'... "
|
|
41
|
+
COMPONENT_RENDER_SERVICE_URL=$(aws --region $AWS_REGION cloudformation describe-stacks --stack-name dx-${DEPLOYMENT_LABEL}-cmp --max-items 1 --query "Stacks[].Outputs[?contains(OutputKey,'renderServiceURL')].OutputValue" --output text)
|
|
42
|
+
[[ $COMPONENT_RENDER_SERVICE_URL ]] || {
|
|
43
|
+
echo "✘";
|
|
44
|
+
echo "COMPONENT_RENDER_SERVICE_URL is empty or unset";
|
|
45
|
+
exit 1;
|
|
46
|
+
}
|
|
47
|
+
echo "✔︎"
|
|
48
|
+
- echo "COMPONENT_MANAGEMENT_SERVICE_URL=${COMPONENT_MANAGEMENT_SERVICE_URL}" >> dot.env
|
|
49
|
+
- echo "COMPONENT_RENDER_SERVICE_URL=${COMPONENT_RENDER_SERVICE_URL}" >> dot.env
|
|
50
|
+
- >2
|
|
51
|
+
echo "COMPONENT_MANAGEMENT_SERVICE_URL now has value: '${COMPONENT_MANAGEMENT_SERVICE_URL}'
|
|
52
|
+
and will be inherited by other jobs via \"dotenv\" artifact"
|
|
53
|
+
- >2
|
|
54
|
+
echo "COMPONENT_RENDER_SERVICE_URL now has value: '${COMPONENT_RENDER_SERVICE_URL}'
|
|
55
|
+
and will be inherited by other jobs via \"dotenv\" artifact"
|
|
34
56
|
artifacts:
|
|
35
57
|
reports:
|
|
36
|
-
dotenv:
|
|
58
|
+
dotenv: dot.env
|
|
37
59
|
|
|
38
60
|
.smoke-test:
|
|
39
61
|
stage: smoke-test
|
|
40
62
|
tags:
|
|
41
63
|
- access/aws-dx-nonprod
|
|
42
64
|
script:
|
|
43
|
-
-
|
|
65
|
+
- export
|
|
44
66
|
- npm i
|
|
45
67
|
- npm run bootstrap
|
|
46
68
|
- npm run clean
|
|
@@ -59,9 +81,6 @@ get-branch-service-urls:
|
|
|
59
81
|
extends:
|
|
60
82
|
- .rules:when-other-branch
|
|
61
83
|
- .get-service-urls
|
|
62
|
-
needs:
|
|
63
|
-
- job: deploy-update-branch-render-service
|
|
64
|
-
- job: deploy-update-branch-management-service
|
|
65
84
|
environment:
|
|
66
85
|
name: non-production-development
|
|
67
86
|
url: components.dev.dx.squiz.cloud
|
|
@@ -70,9 +89,6 @@ get-development-service-urls:
|
|
|
70
89
|
extends:
|
|
71
90
|
- .rules:when-development
|
|
72
91
|
- .get-service-urls
|
|
73
|
-
needs:
|
|
74
|
-
- job: deploy-update-development-render-service
|
|
75
|
-
- job: deploy-update-development-management-service
|
|
76
92
|
environment:
|
|
77
93
|
name: non-production-development
|
|
78
94
|
url: components.dev.dx.squiz.cloud
|
|
@@ -81,9 +97,6 @@ get-uat-service-urls:
|
|
|
81
97
|
extends:
|
|
82
98
|
- .rules:when-uat
|
|
83
99
|
- .get-service-urls
|
|
84
|
-
needs:
|
|
85
|
-
- job: deploy-update-uat-render-service
|
|
86
|
-
- job: deploy-update-uat-management-service
|
|
87
100
|
environment:
|
|
88
101
|
name: non-production-development
|
|
89
102
|
url: components.dev.dx.squiz.cloud
|
|
@@ -92,8 +105,6 @@ smoke-test-branch:
|
|
|
92
105
|
extends:
|
|
93
106
|
- .rules:when-other-branch
|
|
94
107
|
- .smoke-test
|
|
95
|
-
needs:
|
|
96
|
-
- job: get-branch-service-urls
|
|
97
108
|
environment:
|
|
98
109
|
name: non-production-development
|
|
99
110
|
url: components.dev.dx.squiz.cloud
|
|
@@ -102,8 +113,6 @@ smoke-test-development:
|
|
|
102
113
|
extends:
|
|
103
114
|
- .rules:when-development
|
|
104
115
|
- .smoke-test
|
|
105
|
-
needs:
|
|
106
|
-
- job: get-development-service-urls
|
|
107
116
|
environment:
|
|
108
117
|
name: non-production-development
|
|
109
118
|
url: components.dev.dx.squiz.cloud
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.2.1-alpha.72](https://gitlab.squiz.net/developer-experience/cmp/compare/v1.2.1-alpha.67...v1.2.1-alpha.72) (2022-07-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @squiz/component-cli-lib
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.2.1-alpha.71](https://gitlab.squiz.net/developer-experience/cmp/compare/v1.2.1-alpha.67...v1.2.1-alpha.71) (2022-07-20)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @squiz/component-cli-lib
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.2.1-alpha.70](https://gitlab.squiz.net/developer-experience/cmp/compare/v1.2.1-alpha.67...v1.2.1-alpha.70) (2022-07-19)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @squiz/component-cli-lib
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squiz/component-cli-lib",
|
|
3
|
-
"version": "1.2.1-alpha.
|
|
3
|
+
"version": "1.2.1-alpha.72",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"typescript": "4.7.4"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@squiz/component-lib": "^1.2.1-alpha.
|
|
32
|
-
"@squiz/render-runtime-lib": "^1.2.1-alpha.
|
|
33
|
-
"@squiz/virus-scanner-lib": "^1.2.1-alpha.
|
|
31
|
+
"@squiz/component-lib": "^1.2.1-alpha.72",
|
|
32
|
+
"@squiz/render-runtime-lib": "^1.2.1-alpha.72",
|
|
33
|
+
"@squiz/virus-scanner-lib": "^1.2.1-alpha.72",
|
|
34
34
|
"archiver": "5.3.1",
|
|
35
35
|
"axios": "0.27.2",
|
|
36
36
|
"cli-color": "^2.0.2",
|
|
37
37
|
"supertest": "^6.2.3"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "fad0584c239f354687274e4c7b1017c19a1d7a43"
|
|
40
40
|
}
|