@toptal/davinci-ci 7.2.0 → 7.2.1-alpha-fx-5090-purge-cloudflare-cache-on-staff-portal-release-6dcc8dc9.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@toptal/davinci-ci",
|
3
|
-
"version": "7.2.0",
|
3
|
+
"version": "7.2.1-alpha-fx-5090-purge-cloudflare-cache-on-staff-portal-release-6dcc8dc9.0+6dcc8dc9",
|
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": "
|
33
|
+
"@toptal/davinci-cli-shared": "2.3.10-alpha-fx-5090-purge-cloudflare-cache-on-staff-portal-release-6dcc8dc9.128+6dcc8dc9",
|
34
34
|
"chalk": "^4.1.2",
|
35
35
|
"danger": "^11.2.2",
|
36
36
|
"markdown-table": "^2.0.0"
|
@@ -40,5 +40,6 @@
|
|
40
40
|
},
|
41
41
|
"publishConfig": {
|
42
42
|
"access": "public"
|
43
|
-
}
|
43
|
+
},
|
44
|
+
"gitHead": "6dcc8dc99d340bf79b17a7c5a250e291c77474cf"
|
44
45
|
}
|
@@ -25,7 +25,10 @@ RUN echo $VERSION > /usr/share/nginx/html/REVISION.txt
|
|
25
25
|
# Copy configuration file for Nginx and replace the default one.
|
26
26
|
ARG NGINX_CONFIG
|
27
27
|
RUN [ -z "$NGINX_CONFIG" ] && echo "NGINX_CONFIG is required" && exit 1 || true
|
28
|
-
COPY $NGINX_CONFIG /etc/nginx/conf.d/default.conf
|
28
|
+
COPY $NGINX_CONFIG /etc/nginx/conf.d/default.conf.templ
|
29
|
+
|
30
|
+
ARG HTML_CDN_CACHE_TAG="davinci-app"
|
31
|
+
ENV HTML_CDN_CACHE_TAG=${HTML_CDN_CACHE_TAG}
|
29
32
|
|
30
33
|
# Entry point to provide Run Time Environment Variables for the App.
|
31
34
|
ENTRYPOINT ["/usr/local/bin/env-runtime.entrypoint.sh"]
|
@@ -15,7 +15,7 @@ server {
|
|
15
15
|
location / {
|
16
16
|
# by default we are adding cache of 1 hour fo CDN only
|
17
17
|
add_header CDN-Cache-Control "public, max-age=3600";
|
18
|
-
add_header Cache-Tag "davinci,spa,index-doc";
|
18
|
+
add_header Cache-Tag "davinci,spa,index-doc,${HTML_CDN_CACHE_TAG}";
|
19
19
|
try_files $uri /index.html;
|
20
20
|
}
|
21
21
|
}
|