@toptal/davinci-ci 7.2.1-alpha-fx-5090-purge-cloudflare-cache-on-staff-portal-release-6dcc8dc9.0 → 7.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +10 -0
- package/README.md +13 -0
- package/package.json +3 -4
- package/src/configs/docker/env-runtime.entrypoint.sh +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 7.3.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#2366](https://github.com/toptal/davinci/pull/2366) [`738535a0`](https://github.com/toptal/davinci/commit/738535a09ea98a79a4a5a8aabd4b6eebdade3fd1) Thanks [@augustobmoura](https://github.com/augustobmoura)!
|
8
|
+
|
9
|
+
### davinci-ci
|
10
|
+
|
11
|
+
- add variable for HTML CDN cache tags customization
|
12
|
+
|
3
13
|
## 7.2.0
|
4
14
|
|
5
15
|
### Minor Changes
|
package/README.md
CHANGED
@@ -72,6 +72,19 @@ master:
|
|
72
72
|
|
73
73
|
If you have it set as false or if this config is not present in your project `davinci.yaml` file, cypress step will be skipped.
|
74
74
|
|
75
|
+
### Pre-configured davinci docker image
|
76
|
+
|
77
|
+
Davinci CI has a pre-configured docker image recipe, which can be used to build optimized docker images for your frontend applications.
|
78
|
+
The image is present on path `src/configs/docker/Dockerfile.gha-deploy` and have a few build arguments that have to be provided:
|
79
|
+
|
80
|
+
| Build argument | Description | Required |
|
81
|
+
| ------------------------ | -------------------------------------------------------------------------------------------------------- | -------- |
|
82
|
+
| `DIST_FOLDER` | Static build location | Yes |
|
83
|
+
| `ENV_RUNTIME_ENTRYPOINT` | Entrypoint script, davinci has an example file present at `src/configs/docker/env-runtime.entrypoint.sh` | Yes |
|
84
|
+
| `VERSION` | Current release version | Yes |
|
85
|
+
| `NGINX_CONFIG` | Ngninx config, davinci has an example file present at `src/configs/docker/nginx-vhost.conf` | Yes |
|
86
|
+
| `HTML_CDN_CACHE_TAG` | `Cache-Tag` header for HTML documents, used for specific cache purging | No |
|
87
|
+
|
75
88
|
### IDE Tooling
|
76
89
|
|
77
90
|
This package can be used directly in your IDE through these extensions
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@toptal/davinci-ci",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.3.0",
|
4
4
|
"keywords": [
|
5
5
|
"ci",
|
6
6
|
"docker",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"dependencies": {
|
31
31
|
"@commitlint/cli": "^17.6.7",
|
32
32
|
"@commitlint/config-conventional": "^17.1.0",
|
33
|
-
"@toptal/davinci-cli-shared": "2.3.
|
33
|
+
"@toptal/davinci-cli-shared": "^2.3.9",
|
34
34
|
"chalk": "^4.1.2",
|
35
35
|
"danger": "^11.2.2",
|
36
36
|
"markdown-table": "^2.0.0"
|
@@ -40,6 +40,5 @@
|
|
40
40
|
},
|
41
41
|
"publishConfig": {
|
42
42
|
"access": "public"
|
43
|
-
}
|
44
|
-
"gitHead": "6dcc8dc99d340bf79b17a7c5a250e291c77474cf"
|
43
|
+
}
|
45
44
|
}
|
@@ -46,6 +46,6 @@ fi
|
|
46
46
|
|
47
47
|
export HTML_CDN_CACHE_TAG="${HTML_CDN_CACHE_TAG:-"davinci-app"}"
|
48
48
|
|
49
|
-
envsubst '${HTML_CDN_CACHE_TAG}'
|
49
|
+
envsubst '${HTML_CDN_CACHE_TAG}' </etc/nginx/conf.d/default.conf.templ >/etc/nginx/conf.d/default.conf
|
50
50
|
|
51
51
|
exec "$@"
|